From: hickert Date: Tue, 21 Feb 2006 08:27:30 +0000 (+0000) Subject: Set groupfilter, if it wasn't already set X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eca72349bed411f3242a63d27422079fb140c474;p=gosa.git Set groupfilter, if it wasn't already set git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2710 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){