summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5619767)
raw | patch | inline | side by side (parent: 5619767)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Jun 2008 11:33:01 +0000 (11:33 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Jun 2008 11:33:01 +0000 (11:33 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11377 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_MultiSelectWindow.inc | patch | blob | history |
diff --git a/gosa-core/include/class_MultiSelectWindow.inc b/gosa-core/include/class_MultiSelectWindow.inc
index f088cc189351693b1baaf3fd0c4c014b5bb86a93..2787a80871c0cd7196e08a89702d063f32435baf 100644 (file)
}
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
*/