summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6c7f2f7)
raw | patch | inline | side by side (parent: 6c7f2f7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Sep 2008 09:29:58 +0000 (09:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Sep 2008 09:29:58 +0000 (09:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12495 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc
index 26dd857b6bc3905c2ca150c8f0f4285ea74def26..0251feb5559954f29493ced66affae7cfa16600f 100644 (file)
$s.= "...|<img src='plugins/systems/images/select_workstation.png' alt='' border='0' class='center'>".
" "._("Workstation")."|"."newsystem_workstation|\n";
}
- if(class_available("servtabs") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"workstation/servgeneric"))){
+ if(class_available("servtabs") && preg_match("/c/",$ui->get_permissions($this->selectedBase,"server/servgeneric"))){
$s.= "...|<img src='plugins/systems/images/select_server.png' alt='' border='0' class='center'>".
" "._("Server")."|"."newsystem_server|\n";
}
diff --git a/gosa-plugins/systems/admin/systems/class_divListSystemService.inc b/gosa-plugins/systems/admin/systems/class_divListSystemService.inc
index 77e592603321a2076880cf508f492a2a9c8b3794..140e728e02ca9e501668727712f24ff5354571e4 100644 (file)
default: $str= "<img src='plugins/users/images/select_user.png' alt='".$entry['Status']."' title='"._("User status")." : ".$entry['Status']."'>";
}
- /* Get acls */
- $acl = $ui->get_permissions($this->parent->dn,"server/".$name);
- if(preg_match("/w/i",$acl) && !preg_match("/r/i",$acl)){
- continue;
- }
-
$WasAccount = $this->parent->plugins[$name] -> initially_was_account;
$plug = $_GET['plug'];
- $link = "<a href='?plug=".$plug."&act=open&id=".$name."'>".$entry['Message']."</a>";
+
+ if($entry['AllowEdit']){
+ $link = "<a href='?plug=".$plug."&act=open&id=".$name."'>".$entry['Message']."</a>";
+ }else{
+ $link = $entry['Message'];
+ }
$field1 = array("string" => $str ,"attach" => "style='width:20px;'");
$field2 = array("string" => $link);
}
/* Check if edit is enabled and allowed for current service */
- if($entry['AllowEdit'] && preg_match("/(r|w)/i",$acl)){
+ if($entry['AllowEdit']){
$actions .= " <input type='image' name='EditSingleService_".$name."' src='images/lists/edit.png'
title='"._("Edit service")."'>";
}else{
}
/* Check if remove is enabled and allowed for current service */
- if($entry['AllowRemove'] && preg_match("/d/i",$acl)){
+ if($entry['AllowRemove']){
$actions .= " <input type='image' name='RemoveSingleService_".$name."' src='images/lists/trash.png'
title='"._("Remove service")."'>";
}else{
diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc
index bf6113792aecb7e76405f3e7c952b8847e830127..4bd58ed1894d29ca7ff73227e0b95b6f0595615e 100644 (file)
/* Edit a service and make a backup from all attributes,
to be able to restore old values after aborting dialog */
if($s_action == "EditSingleService"){
- $this->backup = get_object_vars($this->plugins[$s_entry]);
- $this->dialog = $this->plugins[$s_entry];
- $this->current = $s_entry;
+ if($this->plugins[$s_entry]->acl_is_readable("")){
+ $this->backup = get_object_vars($this->plugins[$s_entry]);
+ $this->dialog = $this->plugins[$s_entry];
+ $this->current = $s_entry;
+ }
}