Code

Update ACL resolution
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 08:57:58 +0000 (08:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 08:57:58 +0000 (08:57 +0000)
-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

index 615b49fcb49bb01581d63ed7cd36d8f9d54f954d..c69ef528ea0a9a759db25124bbff2f7feba9d6e5 100644 (file)
@@ -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 = "";