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

This commit is contained in:
Bjoern Schiessle 2014-07-28 22:04:13 +02:00
parent 0dc649f391
commit aff948925a

View file

@ -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;
},