From 20462b64bcc7ef1133cda907e21fd39a1c094125 Mon Sep 17 00:00:00 2001 From: nfebe Date: Tue, 25 Nov 2025 10:06:40 +0100 Subject: [PATCH] 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 --- apps/files_sharing/src/components/SharingInput.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 2228f7d0c44..12429e91b75 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -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