From eca72349bed411f3242a63d27422079fb140c474 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 21 Feb 2006 08:27:30 +0000 Subject: [PATCH] Set groupfilter, if it wasn't already set git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2710 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 5ae6f0ddd..66d47eb91 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -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){ -- 2.30.2