From: hickert Date: Fri, 6 Feb 2009 15:59:26 +0000 (+0000) Subject: Updated addressbook ACLs. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d48d22fb4cb6a2cfbfad862c174ebae5aa0502e2;p=gosa.git Updated addressbook ACLs. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13404 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 c72d74617..f3675a5c9 100644 --- a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc +++ b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc @@ -1,7 +1,7 @@ abobjectclass, '/').",/","",$dn); @@ -820,15 +820,16 @@ class addressbook extends plugin /* Use addressbook acls */ if(preg_match("/".preg_quote($this->abobjectclass, '/')."/",$dn)) { - $dn = preg_replace("/".preg_quote($this->abobjectclass, '/').",/","",$dn); - $acls = $this->ui->get_permissions($dn,"addressbook/addressbook",$attr); + $dn_a = preg_replace("/".preg_quote($this->abobjectclass, '/').",/","",$dn); + $acls = $this->ui->get_permissions($dn_a,"addressbook/addressbook",$attr); } /* Use Organizational Person acls */ else{ - $acls = $this->ui->get_permissions($dn,"users/user",$attr); + $acls = $this->ui->get_permissions($dn,"addressbook/addressbookgosa",$attr); } } + return($acls); }