Code

Updated group generic.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jul 2008 09:48:19 +0000 (09:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jul 2008 09:48:19 +0000 (09:48 +0000)
-Updated member add department selection

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

gosa-core/plugins/admin/groups/class_groupGeneric.inc

index 886f794ae639cd92af640b5d6dcbad45f7ca0760..d7937749bc2fdeba354a2b730a9e13f6070787de 100644 (file)
@@ -454,8 +454,16 @@ class group extends plugin
       $smarty->assign("search_image", get_template_path('images/lists/search.png'));
       $smarty->assign("launchimage", get_template_path('images/lists/action.png'));
       $smarty->assign("tree_image", get_template_path('images/lists/search-subtree.png'));
-
-      $smarty->assign("deplist", $this->get_allowed_bases("users/user"));
+      $ui = get_userinfo();
+      $tmp = $ui->get_module_departments("users");
+      $deps = array();
+      foreach($this->config->idepartments as $dn => $name){
+        if(in_array($dn,$tmp)){
+          $deps[$dn] = $name;
+        }
+      }  
+      $smarty->assign("deplist", $deps);
       $smarty->assign("alphabet", generate_alphabet());
       foreach( array("dselect", "regex","SubSearchGroup") as $type){
         $smarty->assign("$type", $gufilter[$type]);