summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-02 15:01:17 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-02 19:37:01 +0100
commitc047f32f25a9c1448bf78ef65d5144f5b882b719 (patch)
tree0a60c7ee89a9007a867c83b0444f93c7e7ea2fc4 /apps
parente6b74fac407b62168633be75312074e8ae0e2175 (diff)
downloadnextcloud-server-c047f32f25a9c1448bf78ef65d5144f5b882b719.tar.gz
nextcloud-server-c047f32f25a9c1448bf78ef65d5144f5b882b719.zip
Remove requeriment for read permission on some actions
The Details and the Favorite actions do not require any permission on the files to be performed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js2
-rw-r--r--apps/files/js/tagsplugin.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index c19f517e422..926a0b7137a 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -407,7 +407,7 @@
mime: 'all',
order: -50,
iconClass: 'icon-details',
- permissions: OC.PERMISSION_READ,
+ permissions: OC.PERMISSION_NONE,
actionHandler: function(fileName, context) {
self._updateDetailsView(fileName);
}
diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js
index 747a7245a56..b174aa7d766 100644
--- a/apps/files/js/tagsplugin.js
+++ b/apps/files/js/tagsplugin.js
@@ -104,7 +104,7 @@
},
mime: 'all',
order: -100,
- permissions: OC.PERMISSION_READ,
+ permissions: OC.PERMISSION_NONE,
iconClass: function(fileName, context) {
var $file = context.$file;
var isFavorite = $file.data('favorite') === true;