Code

Fixed permission problem in addressbook plugin.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 7 Jul 2008 07:17:44 +0000 (07:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 7 Jul 2008 07:17:44 +0000 (07:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11542 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 7e05dc7210fbabadb6897950d1a281c5d75c3072..696d9c001086a8fcc6a9bca55292141c00779b47 100644 (file)
@@ -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