Code

Set groupfilter, if it wasn't already set
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Feb 2006 08:27:30 +0000 (08:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Feb 2006 08:27:30 +0000 (08:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2710 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc

index 5ae6f0dddfa91cc6dfe99966d7320419e403c4a6..66d47eb913699959c3ad785bdb181b3ad8ba6a65 100644 (file)
@@ -376,6 +376,21 @@ class posixAccount extends plugin
     /* Manage group add dialog */
     if ($this->group_dialog){
 
+      /* Get global filter config */
+      if (!is_global("groupfilter")){
+        $base= get_base_from_people($ui->dn);
+        $groupfilter= array("primarygroups" => "checked",
+            "mailgroups" => "checked",
+            "sambagroups" => "checked",
+            "appgroups" => "checked",
+            "functionalgroups" => "checked",
+            "guser" => "*",
+            "subsearch" => "",
+            "depselect" => $base,
+            "regex" => "*");
+        register_global("groupfilter", $groupfilter);
+      }
+
       /* Save data */
       $groupfilter= get_global("groupfilter");
       foreach( array("depselect", "guser", "regex") as $type){