aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/SharingInput.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/components/SharingInput.vue')
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index 49a39915e5e..b886ba95a17 100644
--- a/apps/files_sharing/src/components/SharingInput.vue
+++ b/apps/files_sharing/src/components/SharingInput.vue
@@ -194,11 +194,11 @@ export default {
let shareType = []
- if (this.isExternal) {
- shareType.push(ShareType.Remote)
- shareType.push(ShareType.RemoteGroup)
+ const remoteTypes = [ShareType.Remote, ShareType.RemoteGroup]
+
+ if (this.isExternal && !this.config.showFederatedSharesAsInternal) {
+ shareType.push(...remoteTypes)
} else {
- // Merge shareType array
shareType = shareType.concat([
ShareType.User,
ShareType.Group,
@@ -209,6 +209,9 @@ export default {
ShareType.ScienceMesh,
])
+ if (this.config.showFederatedSharesAsInternal) {
+ shareType.push(...remoteTypes)
+ }
}
if (getCapabilities().files_sharing.public.enabled === true && this.isExternal) {