From d68d50ebbb165f4aefcd90f12e7062603aca1203 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 7 Oct 2009 14:37:20 +0000 Subject: [PATCH] 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 --- .../addressbook/addons/addressbook/class_addressbook.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 2.30.2