summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-09 16:41:49 +0200
committerRobin Appelman <icewind@owncloud.com>2014-10-31 14:43:32 +0100
commit270558807309025a01ff456b94d3350eaab1ac41 (patch)
tree769521a95705d30099aca652136a148b71b19941 /apps/files_sharing/js
parentfe9e6be35ca1759eead73bb7bd32dc8ead1f236e (diff)
downloadnextcloud-server-270558807309025a01ff456b94d3350eaab1ac41.tar.gz
nextcloud-server-270558807309025a01ff456b94d3350eaab1ac41.zip
Dont' use mountpoint permissions as share permissions for external storages
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/share.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index eccd21c9248..dd950e9b42b 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -19,6 +19,10 @@
OCA.Files.FileList.prototype._createRow = function(fileData) {
var tr = oldCreateRow.apply(this, arguments);
var sharePermissions = fileData.permissions;
+ if (fileData.mountType && fileData.mountType === "external-root"){
+ // for external storages we cant use the permissions of the mountpoint
+ sharePermissions = OC.PERMISSION_ALL;
+ }
if (fileData.type === 'file') {
// files can't be shared with delete permissions
sharePermissions = sharePermissions & ~OC.PERMISSION_DELETE;