From aef3764e59812f70fa8345505c4cdcf22bb4ebb0 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 May 2008 12:09:36 +0000 Subject: [PATCH] Updated ACL checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11031 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../departments/class_divListDepartment.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gosa-core/plugins/admin/departments/class_divListDepartment.inc b/gosa-core/plugins/admin/departments/class_divListDepartment.inc index 74512bc7b..f4f85944f 100644 --- a/gosa-core/plugins/admin/departments/class_divListDepartment.inc +++ b/gosa-core/plugins/admin/departments/class_divListDepartment.inc @@ -147,15 +147,15 @@ class divListDepartment extends MultiSelectWindow /* Create Layers menu */ $s = ".|"._("Actions")."|\n"; - $s .= "..|". - " "._("Create")."|\n"; /* Append create options */ if(preg_match("/c/",$acl)) { + $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.= ""; } -- 2.30.2