summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-08-18 11:35:40 +0200
committerVincent Petry <pvince81@owncloud.com>2015-08-18 11:35:40 +0200
commit37a842a18e094b075ca6a97fd5879647fce9dc21 (patch)
treeeedc7f0625abd4f516a0e76730e42bb3d6ae0ce3 /apps/files/js
parent22b63ecd12cc49844133cb6f3e9f35c246b7b6e1 (diff)
downloadnextcloud-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.js2
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');
},