Code

Fixed Management lists - Not readable departments were shown.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Jun 2008 11:33:01 +0000 (11:33 +0000)
committerhickert <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

index f088cc189351693b1baaf3fd0c4c014b5bb86a93..2787a80871c0cd7196e08a89702d063f32435baf 100644 (file)
@@ -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
        */