Code

Updated addressbook plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Oct 2009 07:54:05 +0000 (07:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Oct 2009 07:54:05 +0000 (07:54 +0000)
-There should be at least one department selectable.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14574 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 59006248c189d8287b5e1357bf99357a6343137c..4ebac0f3389a5bef3c5d0561519053de82b1d9a6 100644 (file)
@@ -510,12 +510,10 @@ class addressbook extends plugin
     /* Create list of readable departments */
     $deps = array();
     foreach($this->config->idepartments as $dn => $name){
-      if( $this->acl_is_readable($dn)){
+      if( $this->acl_is_readable($dn) || $dn == $this->config->current['BASE']){
         $deps[$dn] = $name;
       }
     }
-
-
   
     $this->base = $phonefilter['search_base'];
     $smarty->assign("deplist", $deps);