Code

Do not Query for category/0 ACLs.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Oct 2008 09:59:34 +0000 (09:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Oct 2008 09:59:34 +0000 (09:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12825 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index 8645b5aedd0f41706867708a54d981160e11ec94..29a7962eb98fdfaa401c3021af4fef58d8393f6e 100644 (file)
@@ -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;
         }