Code

Global addressbock entries do not require permissions on the ldap root, to show up...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Oct 2009 14:37:20 +0000 (14:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Oct 2009 14:37:20 +0000 (14:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14561 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc

index b81933e1d0e89195fff51e6bdba81f7166791f1b..420ce026b600f1a2014a6b67a5ce779ba7303029 100644 (file)
@@ -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 */