From: hickert Date: Mon, 7 Jul 2008 07:17:44 +0000 (+0000) Subject: Fixed permission problem in addressbook plugin. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2cd8288188b059398592dde7a81c9568e9bdd674;p=gosa.git Fixed permission problem in addressbook plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11542 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 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