Skip to content

Commit 20462b6

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 73d85c1 commit 20462b6

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
@@ -465,7 +465,7 @@ export default {
465465
*/
466466
filterByTrustedServer(result) {
467467
const isRemoteEntity = result.value.shareType === ShareType.Remote || result.value.shareType === ShareType.RemoteGroup
468-
if (isRemoteEntity && this.config.showFederatedSharesToTrustedServersAsInternal) {
468+
if (isRemoteEntity && this.config.showFederatedSharesToTrustedServersAsInternal && !this.isExternal) {
469469
return result.value.isTrustedServer === true
470470
}
471471
return true

0 commit comments

Comments
 (0)