Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-07-23 10:30:42 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-07-23 11:55:55 +0300
commit3811a5ebad87ad595ebc043db2133a08c11059ce (patch)
treeaf271ba596a5ddd09ce388b878c3a22794ac408c /apps/files_sharing
parentfcc708ff229151ecc37ea2238aac135ee66ea956 (diff)
Respect default share permissions
Else we'll always create new shares with the max permissions. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index 41d80cc249b..e5a32e24549 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)