Skip to content

Commit 5c9f19a

Browse files
rullzerbackportbot[bot]
authored andcommitted
Respect default share permissions
Else we'll always create new shares with the max permissions. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent af3faed commit 5c9f19a

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
@@ -429,7 +429,7 @@ export default {
429429
path,
430430
shareType: value.shareType,
431431
shareWith: value.shareWith,
432-
permissions: this.fileInfo.sharePermissions,
432+
permissions: this.fileInfo.sharePermissions & OC.getCapabilities().files_sharing.default_permissions,
433433
})
434434
this.$emit('add:share', share)
435435

0 commit comments

Comments
 (0)