From 271c0e9443fe7078450085bfdcca623bf6fe120f Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 6 Feb 2009 10:11:58 +0000 Subject: [PATCH] Updated ACL resolv in class_userinfo.inc -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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index c410e70db..1966462bf 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -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]; -- 2.30.2