summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-15 13:18:22 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-15 13:18:22 +0100
commit1ecda59c2412164e95db452b43d11b28f1b7c64a (patch)
tree1c9a264aade1d39213182c7806c7c681999e7050 /apps/files_sharing/js
parent67263ef8b4b01ccf014ebffd48a3deab466878cf (diff)
parent843cf906b1f9fd9adce3b5f4bc8ae364a83de69b (diff)
downloadnextcloud-server-1ecda59c2412164e95db452b43d11b28f1b7c64a.tar.gz
nextcloud-server-1ecda59c2412164e95db452b43d11b28f1b7c64a.zip
Merge pull request #21189 from owncloud/fix_21187
File shares can't have create permissions
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/share.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 3d105f283d8..f8d89828f4d 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -45,6 +45,9 @@
if (fileData.type === 'file') {
// files can't be shared with delete permissions
sharePermissions = sharePermissions & ~OC.PERMISSION_DELETE;
+
+ // create permissions don't mean anything for files
+ sharePermissions = sharePermissions & ~OC.PERMISSION_CREATE;
}
tr.attr('data-share-permissions', sharePermissions);
if (fileData.shareOwner) {