mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
allways give admins or emailadmins all rights, even if they are in a denied group
This commit is contained in:
parent
ebda07c37d
commit
87d961b8e8
@ -809,6 +809,10 @@ class mail_hooks
|
|||||||
public static function access($feature)
|
public static function access($feature)
|
||||||
{
|
{
|
||||||
static $config=null;
|
static $config=null;
|
||||||
|
if ($GLOBALS['egw_info']['user']['apps']['admin'] || $GLOBALS['egw_info']['user']['apps']['emailadmin'])
|
||||||
|
{
|
||||||
|
return true; // allways give admins or emailadmins all rights, even if they are in a denied group
|
||||||
|
}
|
||||||
if (!isset($config)) $config = (array)config::read('mail');
|
if (!isset($config)) $config = (array)config::read('mail');
|
||||||
//error_log(__METHOD__.__LINE__.' '.$feature.':'.array2string($config['deny_'.$feature]));
|
//error_log(__METHOD__.__LINE__.' '.$feature.':'.array2string($config['deny_'.$feature]));
|
||||||
if (!empty($config['deny_'.$feature]))
|
if (!empty($config['deny_'.$feature]))
|
||||||
|
Loading…
Reference in New Issue
Block a user