mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-09 11:43:25 +02:00
* Preferences: do NOT use deny configuration for admins
This commit is contained in:
parent
9086a0e2eb
commit
7ff555bbf1
@ -1405,7 +1405,8 @@ if ($app == 'home') continue;
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
if (!$GLOBALS['egw_info']['user']['apps']['preferences'] || $GLOBALS['egw_info']['server']['deny_'.$type] &&
|
if (!$GLOBALS['egw_info']['user']['apps']['preferences'] || $GLOBALS['egw_info']['server']['deny_'.$type] &&
|
||||||
array_intersect($memberships, (array)$GLOBALS['egw_info']['server']['deny_'.$type]))
|
array_intersect($memberships, (array)$GLOBALS['egw_info']['server']['deny_'.$type]) &&
|
||||||
|
!$GLOBALS['egw_info']['user']['apps']['admin'])
|
||||||
{
|
{
|
||||||
return; // user has no access to preferences app
|
return; // user has no access to preferences app
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user