mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 07:58:45 +01:00
* Mail: Fix set vacation via admin does not work anymore
This commit is contained in:
parent
2e7121a427
commit
81da974764
@ -594,7 +594,7 @@ 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'])
|
if ($GLOBALS['egw_info']['user']['apps']['admin'])
|
||||||
{
|
{
|
||||||
return true; // allways give admins or emailadmins all rights, even if they are in a denied group
|
return true; // allways give admins or emailadmins all rights, even if they are in a denied group
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ class mail_sieve
|
|||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->displayCharset = Api\Translation::charset();
|
$this->displayCharset = Api\Translation::charset();
|
||||||
$this->mail_admin = isset($GLOBALS['egw_info']['user']['apps']['emailadmin']);
|
$this->mail_admin = isset($GLOBALS['egw_info']['user']['apps']['admin']);
|
||||||
$this->mailConfig = Api\Config::read('mail');
|
$this->mailConfig = Api\Config::read('mail');
|
||||||
|
|
||||||
$acc_id = isset($_GET['acc_id']) ? (int)$_GET['acc_id'] : Api\Cache::getSession(__CLASS__, 'acc_id');
|
$acc_id = isset($_GET['acc_id']) ? (int)$_GET['acc_id'] : Api\Cache::getSession(__CLASS__, 'acc_id');
|
||||||
|
Loading…
Reference in New Issue
Block a user