From 275b66017c2610ad8a253e4dd2b51c667b2dfef0 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 30 Oct 2008 09:59:34 +0000 Subject: [PATCH] Do not Query for category/0 ACLs. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12825 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userinfo.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2