From 82e0e90022495db810250623a9043c060ac073b5 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 21 Aug 2006 12:10:18 +0000 Subject: [PATCH] Removed debug output Made department filter effective git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4494 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_divListUsers.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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']){ -- 2.30.2