From a0e5846d004ed40b446755b4d4665260429b01a8 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 19 Jun 2008 11:33:01 +0000 Subject: [PATCH] Fixed Management lists - Not readable departments were shown. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11377 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_MultiSelectWindow.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gosa-core/include/class_MultiSelectWindow.inc b/gosa-core/include/class_MultiSelectWindow.inc index f088cc189..2787a8087 100644 --- a/gosa-core/include/class_MultiSelectWindow.inc +++ b/gosa-core/include/class_MultiSelectWindow.inc @@ -672,10 +672,15 @@ class MultiSelectWindow{ } uksort($this->departments, 'strnatcasecmp'); $this->departments = array_values($this->departments); + + $ui = get_userinfo(); + $module_deps = $ui->get_module_departments($this->module); /* Add deps to this dialog object list */ foreach($this->departments as $key=> $val){ + if(!in_array($val['dn'],$module_deps)) continue; + /* Check if this department contains sub-departments Display different image in this case */ -- 2.30.2