From 3811a5ebad87ad595ebc043db2133a08c11059ce Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 23 Jul 2020 09:30:42 +0200 Subject: [PATCH] Respect default share permissions Else we'll always create new shares with the max permissions. Signed-off-by: Roeland Jago Douma --- 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 41d80cc249..e5a32e2454 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -435,7 +435,7 @@ export default { path, shareType: value.shareType, shareWith: value.shareWith, - permissions: this.fileInfo.sharePermissions, + permissions: this.fileInfo.sharePermissions & OC.getCapabilities().files_sharing.default_permissions, }) this.$emit('add:share', share)