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>
This commit is contained in:
parent
e6b74fac40
commit
c047f32f25
|
@ -407,7 +407,7 @@
|
||||||
mime: 'all',
|
mime: 'all',
|
||||||
order: -50,
|
order: -50,
|
||||||
iconClass: 'icon-details',
|
iconClass: 'icon-details',
|
||||||
permissions: OC.PERMISSION_READ,
|
permissions: OC.PERMISSION_NONE,
|
||||||
actionHandler: function(fileName, context) {
|
actionHandler: function(fileName, context) {
|
||||||
self._updateDetailsView(fileName);
|
self._updateDetailsView(fileName);
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
},
|
},
|
||||||
mime: 'all',
|
mime: 'all',
|
||||||
order: -100,
|
order: -100,
|
||||||
permissions: OC.PERMISSION_READ,
|
permissions: OC.PERMISSION_NONE,
|
||||||
iconClass: function(fileName, context) {
|
iconClass: function(fileName, context) {
|
||||||
var $file = context.$file;
|
var $file = context.$file;
|
||||||
var isFavorite = $file.data('favorite') === true;
|
var isFavorite = $file.data('favorite') === true;
|
||||||
|
|
Loading…
Reference in New Issue