From: hickert Date: Fri, 15 Dec 2006 10:23:28 +0000 (+0000) Subject: Fixed acl object fetching X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=46b3be10f24106087e8bb140d9fd57c72e17a2b5;p=gosa.git Fixed acl object fetching git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5410 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/acl/class_aclManagement.inc b/plugins/admin/acl/class_aclManagement.inc index a6ce227dd..9d5757197 100644 --- a/plugins/admin/acl/class_aclManagement.inc +++ b/plugins/admin/acl/class_aclManagement.inc @@ -341,7 +341,10 @@ class aclManagement extends plugin /* Get all object in this base */ $Flags = GL_SIZELIMIT | GL_SUBSEARCH; $fetch_base = $base; - $res = get_list($Filter, "acl", $fetch_base, $Attrs, $Flags); + $tmp = get_list($Filter, "acl", $fetch_base, $Attrs, $Flags); + foreach($tmp as $entry){ + $res[$entry['dn']] = $entry; + } }else{ @@ -356,6 +359,9 @@ class aclManagement extends plugin /* Check if method is cat or search */ if($Type == "search"){ $tmp = get_list($Filter, "acl", $fetch_base, $Attrs, $Flags); + foreach($tmp as $entry){ + $res[$entry['dn']] = $entry; + } }else{ $ldap->cat($fetch_base,$Attrs); if($ldap->count()) { @@ -364,11 +370,10 @@ class aclManagement extends plugin if( (isset($attrs['cn'][0]) && preg_match("/".$re2."/i",$attrs['cn'][0])) |(isset($attrs['ou'][0]) && preg_match("/".$re2."/i",$attrs['ou'][0]))){ - $tmp = array($attrs); + $res[$attrs['dn']] = $attrs; } } } - $res = array_merge($res,$tmp); } } $this->list = $res;