From: hickert Date: Thu, 30 Oct 2008 09:59:34 +0000 (+0000) Subject: Do not Query for category/0 ACLs. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=275b66017c2610ad8a253e4dd2b51c667b2dfef0;p=gosa.git Do not Query for category/0 ACLs. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12825 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 8645b5aed..29a7962eb 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -182,7 +182,6 @@ class userinfo function get_category_permissions($dn, $category, $any_acl = FALSE) { - $ACL_CACHE = &session::get("ACL_CACHE"); $id = $dn."+".$category."+".$any_acl; if(isset($ACL_CACHE['CATEGORY_ACL'][$id])){ @@ -200,7 +199,8 @@ class userinfo $acl= ""; if (isset($this->ocMapping[$category])){ foreach($this->ocMapping[$category] as $oc){ - $acl.= $this->get_permissions($dn, $category."/".$oc); + if(!$oc == 0 ) continue; + $acl.= $this->get_permissions($dn, $category."/".$oc,0); if($any_acl && !empty($acl)){ break; }