From 533f618b44a1dcef220c4ff18cb594daaaa04fea Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 31 Jan 2006 07:35:33 +0000 Subject: [PATCH] Made primary group filter disableble git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2606 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupManagement.inc | 5 +++++ plugins/admin/groups/headpage.tpl | 2 ++ 2 files changed, 7 insertions(+) diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index 84e7eda1e..01e7899af 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -464,6 +464,11 @@ class groupManagement extends plugin $smarty->assign("apply", apply_filter()); $smarty->assign("alphabet", generate_alphabet()); $smarty->assign("hint", print_sizelimit_warning()); + if (isset($this->config->data['MAIN']['NOPRIMARYGROUP'])){ + $smarty->assign("showprimary", ""); + } else { + $smarty->assign("showprimary", "true"); + } return($smarty->fetch(get_template_path('headpage.tpl', TRUE))); } diff --git a/plugins/admin/groups/headpage.tpl b/plugins/admin/groups/headpage.tpl index 5cb4f3e09..f3f1526d5 100644 --- a/plugins/admin/groups/headpage.tpl +++ b/plugins/admin/groups/headpage.tpl @@ -36,10 +36,12 @@
+{if $showprimary == "true"}
+{/if} -- 2.30.2