Code

Updated ACL resolv in class_userinfo.inc
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Feb 2009 10:11:58 +0000 (10:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Feb 2009 10:11:58 +0000 (10:11 +0000)
-Fixed problems with single object root DSE (e.g. dc=sample)

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13391 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index c410e70db7b47e410a67239eabdbcacc5f2fd813..1966462bf8b04b64b64935de471452f11860a6ca 100644 (file)
@@ -196,8 +196,9 @@ class userinfo
     $without_self_acl = $all_acl = array();
     foreach($this->ACL as $dn => $acl){
       $sdn =$dn;
-      while(strpos($dn,",") !== FALSE){
-
+      $first= TRUE; // Run at least once 
+      while(strpos($dn,",") !== FALSE || $first){
+        $first = FALSE;
         if(isset($this->ACL[$dn])){
           $all_acl[$sdn][$dn] = $this->ACL[$dn];
           $without_self_acl[$sdn][$dn] = $this->ACL[$dn];