From 4ab02c0c76e8eedeac9e58d9f196920a931e923c Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 4 Apr 2016 17:01:51 +0200 Subject: bring back CRUDS permissions for federated shares --- core/js/sharedialogshareelistview.js | 18 +++++------------- core/js/shareitemmodel.js | 6 ------ 2 files changed, 5 insertions(+), 19 deletions(-) (limited to 'core') diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index e4edbf24c08..33f30d08fec 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -22,28 +22,25 @@ '
' + '{{/if}}' + '{{shareWithDisplayName}}' + - '{{#if mailNotificationEnabled}} {{#unless isRemoteShare}}' + + '{{#if mailNotificationEnabled}} {{#unless isRemoteShare}}' + '' + '' + '' + '' + '{{/unless}} {{/if}}' + - '{{#if isResharingAllowed}} {{#if sharePermissionPossible}} {{#unless isRemoteShare}}' + + '{{#if isResharingAllowed}} {{#if sharePermissionPossible}}' + '' + '' + '' + '' + - '{{/unless}} {{/if}} {{/if}}' + + '{{/if}} {{/if}}' + '{{#if editPermissionPossible}}' + '' + '' + '' + - '{{#unless isRemoteShare}}' + '{{crudsLabel}}' + - '{{/unless}}' + '' + '{{/if}}' + - '{{#unless isRemoteShare}}' + '' + - '{{/unless}}' + '' + '{{/each}}' + '' @@ -125,10 +121,6 @@ shareWithDisplayName = shareWithDisplayName + " (" + t('core', 'group') + ')'; } else if (shareType === OC.Share.SHARE_TYPE_REMOTE) { shareWithDisplayName = shareWithDisplayName + " (" + t('core', 'remote') + ')'; - hasPermissionOverride = { - createPermissionPossible: true, - updatePermissionPossible: true - }; } return _.extend(hasPermissionOverride, { diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index 292230d26d5..2d4af365114 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -411,12 +411,6 @@ 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