Skip to content

Commit aa52ca4

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 80b04bd commit aa52ca4

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
@@ -474,7 +474,7 @@ export default {
474474
*/
475475
filterByTrustedServer(result) {
476476
const isRemoteEntity = result.value.shareType === ShareType.Remote || result.value.shareType === ShareType.RemoteGroup
477-
if (isRemoteEntity && this.config.showFederatedSharesToTrustedServersAsInternal) {
477+
if (isRemoteEntity && this.config.showFederatedSharesToTrustedServersAsInternal && !this.isExternal) {
478478
return result.value.isTrustedServer === true
479479
}
480480
return true

0 commit comments

Comments
 (0)