summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
},