From ea5c28996016b54a22a84197b3d034c8ea478d91 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 May 2008 08:00:08 +0000 Subject: [PATCH] Updated acl/acl-role acl checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11094 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/admin/acl/class_divListACL.inc | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/gosa-core/plugins/admin/acl/class_divListACL.inc b/gosa-core/plugins/admin/acl/class_divListACL.inc index 5838c7615..b1c3734e8 100644 --- a/gosa-core/plugins/admin/acl/class_divListACL.inc +++ b/gosa-core/plugins/admin/acl/class_divListACL.inc @@ -203,14 +203,14 @@ class divListACL extends MultiSelectWindow $ui = get_userinfo(); foreach($list as $key => $acl_entry){ - /* Get copy & paste icon */ - $acl = $this->ui->get_permissions($acl_entry['dn'],"acl/acl"); - $acl_all = $this->ui->has_complete_category_acls($acl_entry['dn'],"acl"); $action = ""; if(in_array("gosaRole",$acl_entry['objectClass'])){ /* Role handling */ + $acl = $this->ui->get_permissions($acl_entry['dn'],"aclroles/aclRole"); + $acl_all = $this->ui->has_complete_category_acls($acl_entry['dn'],"aclroles"); + $editlink = "%s"; $list_left_icon = ""._("Role").""; $cn = htmlentities(utf8_decode($acl_entry['cn'][0])) ; @@ -248,8 +248,15 @@ class divListACL extends MultiSelectWindow $action.= ""; } + + $field0 = array("string" => "" , + "attach" => "style='width:20px;'"); + }else{ + $acl = $this->ui->get_permissions($acl_entry['dn'],"acl/acl"); + $acl_all = $this->ui->has_complete_category_acls($acl_entry['dn'],"acl"); + /* Acl handling */ $editlink = "%s"; $list_left_icon = ""._("ACL").""; @@ -264,12 +271,6 @@ class divListACL extends MultiSelectWindow $action.= ""; } - } - - if(in_array("gosaRole",$acl_entry['objectClass'])){ - $field0 = array("string" => "" , - "attach" => "style='width:20px;'"); - }else{ $field0 = array("string" => "", "attach" => "style='width:20px;'"); } @@ -283,7 +284,7 @@ class divListACL extends MultiSelectWindow } } } - + $field1 = array("string" => $list_left_icon, "attach"=> "style='text-align:center;width:20px;'"); $field2 = array("string" => sprintf($editlink,$key,$display)." ","attach" => ""); $field3 = array("string" => preg_replace("/%KEY%/",$key,$action), "attach"=> "style='text-align:right;width:".$this->action_col_size."px;border-right:0px;'"); -- 2.30.2