diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-18 11:35:40 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-18 11:35:40 +0200 |
commit | 37a842a18e094b075ca6a97fd5879647fce9dc21 (patch) | |
tree | eedc7f0625abd4f516a0e76730e42bb3d6ae0ce3 /apps/files/js | |
parent | 22b63ecd12cc49844133cb6f3e9f35c246b7b6e1 (diff) | |
download | nextcloud-server-37a842a18e094b075ca6a97fd5879647fce9dc21.tar.gz nextcloud-server-37a842a18e094b075ca6a97fd5879647fce9dc21.zip |
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.
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/fileactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 1d0493f2140..f3f137a0537 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -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'); }, |