X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Fdepartments%2Fclass_divListDepartment.inc;h=f4f85944fcbf24fc778b29330194827ca502aea2;hb=aef3764e59812f70fa8345505c4cdcf22bb4ebb0;hp=0abfb0d8b9680ad28b30cb44845ad833a0cdab5f;hpb=00cab3c9e2f54f61a54feee620735b1f49213a09;p=gosa.git
diff --git a/gosa-core/plugins/admin/departments/class_divListDepartment.inc b/gosa-core/plugins/admin/departments/class_divListDepartment.inc
index 0abfb0d8b..f4f85944f 100644
--- a/gosa-core/plugins/admin/departments/class_divListDepartment.inc
+++ b/gosa-core/plugins/admin/departments/class_divListDepartment.inc
@@ -58,7 +58,7 @@ class divListDepartment extends MultiSelectWindow
/* Toggle all selected / deselected */
- $chk = "";
/* set Page header */
@@ -142,20 +142,20 @@ class divListDepartment extends MultiSelectWindow
$listhead .=
" "._("Base")." ".
- " ";
/* Create Layers menu */
$s = ".|"._("Actions")."|\n";
- $s .= "..|
".
- " "._("Create")."|\n";
/* Append create options */
if(preg_match("/c/",$acl)) {
- $s.= "...|".
+ $s .= "..|
".
+ " "._("Create")."|\n";
+ $s.= "...|".
" "._("Department")."|dep_new|\n";
+ $s.= "..|---|\n";
}
- $s.= "..|---|\n";
$s.= "..|
".
" "._("Remove")."|"."remove_multiple|\n";
@@ -180,12 +180,12 @@ class divListDepartment extends MultiSelectWindow
$actions= "";
$acl = $ui->get_permissions($this->config->departments[$key] ,"department/department");
- if(preg_match("/r/",$acl)){
- $actions.= "";
- }
+ $acl_all = $ui->has_complete_category_acls($this->config->departments[$key] ,"department");
+
+ $actions.= "";
- if(preg_match("/c/",$acl)){
+ if(preg_match("/d/",$acl)){
$actions.= "";
}