Code

Made primary group filter disableble
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Jan 2006 07:35:33 +0000 (07:35 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Jan 2006 07:35:33 +0000 (07:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2606 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupManagement.inc
plugins/admin/groups/headpage.tpl

index 84e7eda1ecf50bf2a84f9fcf715af18d3562d343..01e7899afcb6917e6795d4d90306b9b63eded652 100644 (file)
@@ -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)));
   }
index 5cb4f3e095f87a88c85b8a315112d531ad6e7b62..f3f1526d577c0a09cec7231babb1edbb0176910c 100644 (file)
        <table summary="" style="width:100%;border-top:1px solid #B0B0B0;">     
                <tr>
                        <td>
+{if $showprimary == "true"}
        <input type="checkbox" id="primarygroups" name="primarygroups" value="1" {$primarygroups} onClick="mainform.submit()" 
                        title="{t}Select to see groups that are primary groups of users{/t}">
                <label for="primarygroups">{t}Show primary groups{/t}</label>
                <br />
+{/if}
     <input type='checkbox' id="sambagroups" name="sambagroups" value="1" {$sambagroups} onClick="mainform.submit()" 
                title="{t}Select to see groups that have samba groups mappings{/t}">
                <label for="sambagroups">{t}Show samba groups{/t}</label>