Respect default share permissions

Else we'll always create new shares with the max permissions.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-07-23 09:30:42 +02:00 committed by backportbot[bot]
parent fcc708ff22
commit 3811a5ebad
1 changed files with 1 additions and 1 deletions

View File

@ -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)