From 37a842a18e094b075ca6a97fd5879647fce9dc21 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 18 Aug 2015 11:35:40 +0200 Subject: 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. --- apps/files/js/fileactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files') 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'); }, -- cgit v1.2.3