mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Disable copy / paste for readonly shares
This commit is contained in:
parent
96eb731d47
commit
069d49afba
@ -683,5 +683,38 @@ if (file_exists(__DIR__.'/../../../filemanager/inc/class.filemanager_ui.inc.php'
|
|||||||
{
|
{
|
||||||
return $GLOBALS['egw']->sharing->get_root();
|
return $GLOBALS['egw']->sharing->get_root();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Context menu
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public static function get_actions()
|
||||||
|
{
|
||||||
|
$actions = parent::get_actions();
|
||||||
|
$group = 1;
|
||||||
|
if(Vfs::is_writable($GLOBALS['egw']->sharing->get_root()))
|
||||||
|
{
|
||||||
|
return $actions;
|
||||||
|
}
|
||||||
|
$actions+= array(
|
||||||
|
'egw_copy' => array(
|
||||||
|
'enabled' => false,
|
||||||
|
'group' => $group + 0.5,
|
||||||
|
'hideOnDisabled' => true
|
||||||
|
),
|
||||||
|
'egw_copy_add' => array(
|
||||||
|
'enabled' => false,
|
||||||
|
'group' => $group + 0.5,
|
||||||
|
'hideOnDisabled' => true
|
||||||
|
),
|
||||||
|
'paste' => array(
|
||||||
|
'enabled' => false,
|
||||||
|
'group' => $group + 0.5,
|
||||||
|
'hideOnDisabled' => true
|
||||||
|
),
|
||||||
|
);
|
||||||
|
return $actions;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user