mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
Disable "Set this as default" option for vacation notice if the user is not an admin user
This commit is contained in:
parent
80ac3a9537
commit
d23723244d
@ -659,6 +659,11 @@ class mail_sieve
|
||||
{
|
||||
$sel_options['status'] += $ByDate;
|
||||
}
|
||||
if (!isset($GLOBALS['egw_info']['user']['apps']['admin']))
|
||||
{
|
||||
$content['is_not_admin_user'] = true;
|
||||
$readonlys['set_as_default'] = true;
|
||||
}
|
||||
$content['msg'] = $msg;
|
||||
}
|
||||
else
|
||||
|
@ -50,7 +50,7 @@
|
||||
</vbox>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Set it as default:"/>
|
||||
<description value="Set it as default:" disabled="@is_not_admin_user"/>
|
||||
<checkbox id="set_as_default"/>
|
||||
<description value="Validate addresses on submit:"/>
|
||||
<checkbox id="check_mail_sent_to"/>
|
||||
|
Loading…
Reference in New Issue
Block a user