fix authentication error when calling vacation notice from admin for another user

This commit is contained in:
ralf 2023-12-11 13:19:39 +02:00
parent 8dba8c7f46
commit e5657b8a42

View File

@ -710,7 +710,7 @@ class mail_sieve
),
'addresses' => array_combine($vacRules['aliases'],$vacRules['aliases']),
);
if (in_array('VACATION-SECONDS', $icServer->getExtensions()))
if ($icServer->acc_imap_administration || in_array('VACATION-SECONDS', $icServer->getExtensions()))
{
$sel_options['days']['0'] = lang('Always respond / auto-responder');
}