mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(sharing): allow federated shares to non-trusted servers
When `showFederatedSharesToTrustedServersAsInternal` is enabled, the trusted server filter was incorrectly applied to both internal and external sharing sections. This prevented users from sharing with federated users on non-trusted servers via the external share UI. The filter now only applies to the internal section, allowing non-trusted federated shares to appear in the external section. Fixes: https://github.com/nextcloud/server/issues/56622 Signed-off-by: nfebe <fenn25.fn@gmail.com>
This commit is contained in:
parent
73d85c1b25
commit
20462b64bc
1 changed files with 1 additions and 1 deletions
|
|
@ -465,7 +465,7 @@ export default {
|
|||
*/
|
||||
filterByTrustedServer(result) {
|
||||
const isRemoteEntity = result.value.shareType === ShareType.Remote || result.value.shareType === ShareType.RemoteGroup
|
||||
if (isRemoteEntity && this.config.showFederatedSharesToTrustedServersAsInternal) {
|
||||
if (isRemoteEntity && this.config.showFederatedSharesToTrustedServersAsInternal && !this.isExternal) {
|
||||
return result.value.isTrustedServer === true
|
||||
}
|
||||
return true
|
||||
|
|
|
|||
Loading…
Reference in a new issue