summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9fc1dee)
raw | patch | inline | side by side (parent: 9fc1dee)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 May 2008 08:00:08 +0000 (08:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 May 2008 08:00:08 +0000 (08:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11094 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/acl/class_divListACL.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/acl/class_divListACL.inc b/gosa-core/plugins/admin/acl/class_divListACL.inc
index 5838c761501cceb5c328c3d0de0f13355a9242b5..b1c3734e882f895436f3ccd42bdd89e496d502fc 100644 (file)
$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 = "<a href='?plug=".$_GET['plug']."&id=%s&act=list_edit_role'>%s</a>";
$list_left_icon = "<img src='plugins/acl/images/role.png' alt='"._("Role")."'>";
$cn = htmlentities(utf8_decode($acl_entry['cn'][0])) ;
$action.= "<input class='center' type='image' src='images/lists/trash.png' alt='"._("delete")."'
name='list_acl_role_del_%KEY%' title='"._("Delete acl role")."'>";
}
+
+ $field0 = array("string" => "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>" ,
+ "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 = "<a href='?plug=".$_GET['plug']."&id=%s&act=list_edit_entry'>%s</a>";
$list_left_icon = "<img src='images/lists/locked.png' alt='"._("ACL")."'>";
$action.= "<input class='center' type='image' src='images/lists/trash.png' alt='"._("delete")."'
name='list_acl_del_%KEY%' title='"._("Delete acl")."'>";
}
- }
-
- if(in_array("gosaRole",$acl_entry['objectClass'])){
- $field0 = array("string" => "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>" ,
- "attach" => "style='width:20px;'");
- }else{
$field0 = array("string" => "", "attach" => "style='width:20px;'");
}
}
}
}
-
+
$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;'");