Only show delete action in menu when delete permission exists

This reverts an older decision where we said the delete action must
always appear but be grayed out when the permission is missing.
The actions menu obsoletes that.
This commit is contained in:
Vincent Petry 2015-08-18 11:35:40 +02:00
parent 22b63ecd12
commit 37a842a18e
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@
name: 'Delete',
mime: 'all',
// permission is READ because we show a hint instead if there is no permission
permissions: OC.PERMISSION_READ,
permissions: OC.PERMISSION_DELETE,
icon: function() {
return OC.imagePath('core', 'actions/delete');
},