diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-09-02 17:27:25 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-16 07:23:27 +0200 |
commit | 5dc2c35ce5f3023ccea4cc599cf54d6b1c0e2c01 (patch) | |
tree | 70457c2a82d972ecdbe269114f34f9ec934fd5c8 /core/js/shareitemmodel.js | |
parent | 60abfcdab16ed674015422a6300bd28f3baa5e91 (diff) | |
download | nextcloud-server-5dc2c35ce5f3023ccea4cc599cf54d6b1c0e2c01.tar.gz nextcloud-server-5dc2c35ce5f3023ccea4cc599cf54d6b1c0e2c01.zip |
fixed set of possible permissions for remote shares
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r-- | core/js/shareitemmodel.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index 8afc4954902..acaa890be11 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -253,6 +253,12 @@ if(!_.isObject(share)) { throw "Unknown Share"; } + if( share.share_type === OC.Share.SHARE_TYPE_REMOTE + && ( permission === OC.PERMISSION_SHARE + || permission === OC.PERMISSION_DELETE)) + { + return false; + } return (share.permissions & permission) === permission; }, |