diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-28 22:04:13 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-29 14:01:06 +0200 |
commit | 59aa54ddb8776ee4adc05948ca19fe6730a05e5c (patch) | |
tree | 2a787015ee2750aa025b3d887e44e91c11fbdc11 /apps | |
parent | 7287789588a2884b28eb103adb87e44322d6ae8c (diff) | |
download | nextcloud-server-59aa54ddb8776ee4adc05948ca19fe6730a05e5c.tar.gz nextcloud-server-59aa54ddb8776ee4adc05948ca19fe6730a05e5c.zip |
update attributes for share with user list, file should always have delete permissions, this means unshare in this context, and the overview page is always a root view
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index c060691b8b5..7a43185a2d7 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -59,6 +59,9 @@ $tr.attr('data-share-id', _.pluck(fileData.shares, 'id').join(',')); if (this._sharedWithUser) { $tr.attr('data-share-owner', fileData.shareOwner); + $tr.attr('data-mounttype', 'shared-root'); + var permission = parseInt($tr.attr('data-permissions')) | OC.PERMISSION_DELETE; + $tr.attr('data-permissions', permission); } return $tr; }, |