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:
parent
22b63ecd12
commit
37a842a18e
|
@ -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');
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue