summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-07-28 22:04:13 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-07-29 14:01:06 +0200
commit59aa54ddb8776ee4adc05948ca19fe6730a05e5c (patch)
tree2a787015ee2750aa025b3d887e44e91c11fbdc11 /apps
parent7287789588a2884b28eb103adb87e44322d6ae8c (diff)
downloadnextcloud-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.js3
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;
},