From 5dc2c35ce5f3023ccea4cc599cf54d6b1c0e2c01 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 2 Sep 2015 17:27:25 +0200 Subject: fixed set of possible permissions for remote shares --- core/js/shareitemmodel.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/js/shareitemmodel.js') 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; }, -- cgit v1.2.3