diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-09-16 20:54:11 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-10-31 14:43:32 +0100 |
commit | 307071cfec088c2690c12a686578b49647ba5840 (patch) | |
tree | 7335dc815e6f9f566bcd40a09982295f3f9e696d /apps/files_sharing/js/share.js | |
parent | 270558807309025a01ff456b94d3350eaab1ac41 (diff) | |
download | nextcloud-server-307071cfec088c2690c12a686578b49647ba5840.tar.gz nextcloud-server-307071cfec088c2690c12a686578b49647ba5840.zip |
Keep the share permissions from mountpoints
Diffstat (limited to 'apps/files_sharing/js/share.js')
-rw-r--r-- | apps/files_sharing/js/share.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index dd950e9b42b..853e9f689f6 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -21,7 +21,8 @@ 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; + // instead we show all permissions and only use the share permissions from the mountpoint to handle resharing + sharePermissions = sharePermissions | (OC.PERMISSION_ALL & ~OC.PERMISSION_SHARE); } if (fileData.type === 'file') { // files can't be shared with delete permissions |