From: hickert Date: Mon, 17 May 2010 08:57:58 +0000 (+0000) Subject: Update ACL resolution X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a1042e3e00ba59c4bf021996296bed796f1a815c;p=gosa.git Update ACL resolution -Do not display potential error messages while develpmentMode is false git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18503 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 615b49fcb..c69ef528e 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -370,7 +370,8 @@ class userinfo $aclCategory = $object; } - if($this->config->get_cfg_value("core","displayErrors") == "true"){ + if($this->config->boolValueIsTrue("core","developmentMode")){ + if(!isset($this->ocMapping[$aclCategory])){ trigger_error("Invalid ACL category '".$aclCategory."'! ({$object})"); return(""); @@ -744,7 +745,7 @@ class userinfo } } }else{ - if($this->config->get_cfg_value("core","displayErrors") == "true"){ + if($this->config->boolValueIsTrue("core","developmentMode")){ trigger_error("Invalid type of category ".$category); } $acl = "";