diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-28 22:04:13 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-28 22:04:13 +0200 |
commit | aff948925a896e996304a092cfb01c48c11f6ad7 (patch) | |
tree | 18023e21d5e3e3dd97a0a22140090f3ebef4632d /apps/files_sharing | |
parent | 0dc649f3914c4917cbc679827fb4f080e4679b35 (diff) | |
download | nextcloud-server-aff948925a896e996304a092cfb01c48c11f6ad7.tar.gz nextcloud-server-aff948925a896e996304a092cfb01c48c11f6ad7.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/files_sharing')
-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; }, |