Code

Fixed department list
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Jan 2007 11:50:06 +0000 (11:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Jan 2007 11:50:06 +0000 (11:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5538 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_divListDepartment.inc

index 501938ad58f74c95e062d31b517577ef77b49c34..04898971f3815e1d906952bf5053cb0d43628766 100755 (executable)
@@ -88,10 +88,11 @@ class divListDepartment extends MultiSelectWindow
 
     $linkopen = "<a href='?plug=".$_GET['plug']."&amp;act=dep_open&amp;dep_id=%s'>%s</a>";
 
+    $ui = get_userinfo();
     foreach($list as $key => $val) {
 
-      $acl= get_permissions ($val['dn'], $this->ui->subtreeACL);
-      $acl= get_module_permission($acl, "department", $val['dn']);
+      $acl= get_permissions ($this->config->departments[$key], $ui->subtreeACL);
+      $acl= get_module_permission($acl, "department", $this->config->departments[$key]);
 
       $actions= "<input class='center' type='image' src='images/edit.png'
         alt='"._("edit")."'   name='dep_edit_%KEY%' title='"._("Edit this entry")."'>";