From: cajus Date: Mon, 21 Aug 2006 12:10:18 +0000 (+0000) Subject: Removed debug output X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=82e0e90022495db810250623a9043c060ac073b5;p=gosa.git Removed debug output Made department filter effective git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4494 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/users/class_divListUsers.inc b/plugins/admin/users/class_divListUsers.inc index 30423e60c..d239375b8 100644 --- a/plugins/admin/users/class_divListUsers.inc +++ b/plugins/admin/users/class_divListUsers.inc @@ -85,16 +85,14 @@ class divListUsers extends MultiSelectWindow $deps= get_list("(&(|(ou=*)(description=*))(objectClass=gosaDepartment))", $this->module, $base, array("ou", "description"), GL_SIZELIMIT | GL_SUBSEARCH); -$ui= get_userinfo(); -$t= $ui->get_module_departments("users"); -print_a($t); + /* Load possible departments */ + $ui= get_userinfo(); + $tdeps= $ui->get_module_departments("users"); $ids = $this->config->idepartments; -print_a($ids); - foreach($deps as $dep){ - if(isset($ids[$dep['dn']])){ + if(isset($ids[$dep['dn']]) && in_array_ics($dep['dn'], $tdeps)){ $value = $ids[$dep['dn']]; if ($this->selectedBase == $dep['dn']){