mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Avoid displaying portlets from apps the user has no access to.
This commit is contained in:
parent
fdff696a0c
commit
61103e950d
@ -164,6 +164,14 @@ class home_ui
|
||||
) continue;
|
||||
|
||||
$classname = $context['class'];
|
||||
|
||||
// Avoid portlets for apps user can't use (eg. from defaults/forced)
|
||||
list($app,$other) = explode('_',$classname);
|
||||
if(!$GLOBALS['egw_info']['apps'][$app]) $app .='_'.$other;
|
||||
if(!$GLOBALS['egw_info']['user']['apps'][$app]) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$portlet = new $classname($context);
|
||||
$desc = $portlet->get_description();
|
||||
$portlet_content = array(
|
||||
|
Loading…
Reference in New Issue
Block a user