Do not add edit setting action when we are in sharing view

This commit is contained in:
Hadi Nategh 2018-07-26 14:10:53 +02:00
parent 6572c98bd1
commit 7413b60ecf

View File

@ -456,6 +456,8 @@ if (file_exists(__DIR__.'/../../../filemanager/inc/class.filemanager_ui.inc.php'
{ {
$actions = parent::get_actions(); $actions = parent::get_actions();
$group = 1; $group = 1;
// do not add edit setting action when we are in sharing
unset($actions['edit']);
if(Vfs::is_writable($GLOBALS['egw']->sharing->get_root())) if(Vfs::is_writable($GLOBALS['egw']->sharing->get_root()))
{ {
return $actions; return $actions;