Skip to content

Commit 9257378

Browse files
committed
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: #56622 Signed-off-by: nfebe <[email protected]>
1 parent 0311fb3 commit 9257378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/src/components/SharingInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ export default {
473473
*/
474474
filterByTrustedServer(result) {
475475
const isRemoteEntity = result.value.shareType === ShareType.Remote || result.value.shareType === ShareType.RemoteGroup
476-
if (isRemoteEntity && this.config.showFederatedSharesToTrustedServersAsInternal) {
476+
if (isRemoteEntity && this.config.showFederatedSharesToTrustedServersAsInternal && !this.isExternal) {
477477
return result.value.isTrustedServer === true
478478
}
479479
return true

0 commit comments

Comments
 (0)