* Preferences: do NOT use deny configuration for admins

This commit is contained in:
Ralf Becker 2014-07-14 16:26:03 +00:00
parent 4d24812a48
commit 2461660920

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
}