X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Fdepartments%2Fclass_divListDepartment.inc;h=f4f85944fcbf24fc778b29330194827ca502aea2;hb=aef3764e59812f70fa8345505c4cdcf22bb4ebb0;hp=dde8370567f7af1054a55f9d8406528b43d579fa;hpb=7692f34a23250aa815f368cc9cd17064cf0af141;p=gosa.git
diff --git a/gosa-core/plugins/admin/departments/class_divListDepartment.inc b/gosa-core/plugins/admin/departments/class_divListDepartment.inc
index dde837056..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.= "";
}
@@ -216,7 +216,7 @@ class divListDepartment extends MultiSelectWindow
"attach" => "style='width:20px;'");
}
- $field0 = array("string" => "", "attach" => "style='text-align:center;width:20px;'");
+ $field0 = array("string" => "", "attach" => "style='text-align:center;width:20px;'");
$field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style='' title='".$title."'");
$field2 = array("string" => preg_replace("/%KEY%/", base64_encode($key), $actions), "attach" => "style='width:60px;border-right:0px;text-align:
right;'");
@@ -227,7 +227,7 @@ class divListDepartment extends MultiSelectWindow
/* Create summary string for list footer */
$num_deps=count($list);
$num_dep_str = _("Number of listed departments");
- $str = " ".$num_deps." ";
$this->set_List_Bottom_Info($str);