* Preferences: do NOT use deny configuration for admins

This commit is contained in:
Ralf Becker 2014-07-14 16:26:21 +00:00
parent 9086a0e2eb
commit 7ff555bbf1

View File

@ -1405,7 +1405,8 @@ if ($app == 'home') continue;
),
);
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
}