mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Do not show actions which user has no run permission
This commit is contained in:
parent
ba7f8f2d80
commit
490a8f6ff4
@ -264,6 +264,12 @@ class mail_compose
|
||||
}
|
||||
unset($actions['pgp']);
|
||||
}
|
||||
// remove vfs actions if the user has no run access to filemanager
|
||||
if (!$GLOBALS['egw_info']['user']['apps']['filemanager'])
|
||||
{
|
||||
unset($actions['save2vfs']);
|
||||
unset($actions['selectFromVFSForCompose']);
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
|
@ -1300,6 +1300,11 @@ class mail_ui
|
||||
{
|
||||
unset($actions['calendar']);
|
||||
}
|
||||
// remove vfs actions if the user has no run access to filemanager
|
||||
if (!$GLOBALS['egw_info']['user']['apps']['filemanager'])
|
||||
{
|
||||
unset($actions['save']['children']['save2filemanager']);
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user