From d48d22fb4cb6a2cfbfad862c174ebae5aa0502e2 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 6 Feb 2009 15:59:26 +0000 Subject: [PATCH] Updated addressbook ACLs. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13404 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../addons/addressbook/class_addressbook.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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); } -- 2.30.2