From: hickert Date: Wed, 7 Oct 2009 14:37:20 +0000 (+0000) Subject: Global addressbock entries do not require permissions on the ldap root, to show up... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d68d50ebbb165f4aefcd90f12e7062603aca1203;p=gosa.git Global addressbock entries do not require permissions on the ldap root, to show up in the addressbook listing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14561 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc index b81933e1d..420ce026b 100644 --- a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc +++ b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc @@ -830,8 +830,10 @@ class addressbook extends plugin /* Use addressbook acls */ if(preg_match("/".preg_quote($this->abobjectclass, '/')."/",$dn)) { - $dn_a = preg_replace("/".preg_quote($this->abobjectclass, '/').",/","",$dn); - $acls = $this->ui->get_permissions($dn_a,"addressbook/addressbook",$attr); + $acls = ""; + foreach($this->ui->ACLperPath as $path => $data){ + $acls.= $this->ui->get_permissions($path,"addressbook/addressbook",$attr); + } } /* Use Organizational Person acls */