Disable "Set this as default" option for vacation notice if the user is not an admin user

This commit is contained in:
Hadi Nategh 2014-06-30 12:03:09 +00:00
parent 80ac3a9537
commit d23723244d
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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"/>