From e9cd63aaef2163be5008ea1ec75fde5ee2d80cfb Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 16 Jul 2008 09:48:19 +0000 Subject: [PATCH] Updated group generic. -Updated member add department selection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11678 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/admin/groups/class_groupGeneric.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/admin/groups/class_groupGeneric.inc b/gosa-core/plugins/admin/groups/class_groupGeneric.inc index 886f794ae..d7937749b 100644 --- a/gosa-core/plugins/admin/groups/class_groupGeneric.inc +++ b/gosa-core/plugins/admin/groups/class_groupGeneric.inc @@ -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]); -- 2.30.2