From 2cd8288188b059398592dde7a81c9568e9bdd674 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 7 Jul 2008 07:17:44 +0000 Subject: [PATCH] Fixed permission problem in addressbook plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11542 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../addressbook/addons/addressbook/class_addressbook.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc index 7e05dc721..696d9c001 100644 --- a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc +++ b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc @@ -553,8 +553,11 @@ class addressbook extends plugin } foreach ($this->attributes as $name){ + $dn = $this->dn; + if($dn == "new") $dn = $this->base; + /* Skip entries we are not allowed to read */ - if(!preg_match("/r/",$this->get_entry_acls($this->dn,$name))){ + if(!preg_match("/r/",$this->get_entry_acls($dn,$name))){ $smarty->assign("info_$name", ""); }else -- 2.30.2