From 68ae5428170c865c5ac3d4d2fa21d60ce44131df Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Thu, 6 Jun 2013 20:40:54 +0000 Subject: [PATCH] AliasHandler: - use Config::bool() instead of boolconf() git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1472 a1433add-5e2c-0410-b055-b7f2511e0802 --- model/AliasHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/AliasHandler.php b/model/AliasHandler.php index 0a8520fd..67bc7e1d 100644 --- a/model/AliasHandler.php +++ b/model/AliasHandler.php @@ -126,7 +126,8 @@ class AliasHandler extends PFAHandler { if ( !$this->new && $this->return['is_mailbox'] && $this->admin_username != ''&& !authentication_has_role('global-admin') ) { # domain admins are not allowed to change mailbox alias $CONF['alias_control_admin'] = NO - if (!boolconf('alias_control_admin')) { + # TODO: apply the same restriction to superadmins? + if (!Config::bool('alias_control_admin')) { # TODO: make translateable $this->errormsg[] = "Domain administrators do not have the ability to edit user's aliases (check config.inc.php - alias_control_admin)"; return false;