From a1042e3e00ba59c4bf021996296bed796f1a815c Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 17 May 2010 08:57:58 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_userinfo.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 = ""; -- 2.30.2