summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c880b9)
raw | patch | inline | side by side (parent: 2c880b9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Jul 2008 07:03:41 +0000 (07:03 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Jul 2008 07:03:41 +0000 (07:03 +0000) |
-Display correct action icons.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11755 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11755 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_divListSystemService.inc | patch | blob | history | |
gosa-plugins/systems/admin/systems/services/class_goService.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_divListSystemService.inc b/gosa-plugins/systems/admin/systems/class_divListSystemService.inc
index 8fc4e1cdac66a7c7f7eb0ebd5bbc293155ecb016..0921c943bd6e1f415ea3006604f1be992c382f77 100644 (file)
}else{
$actions .= " <img src='images/empty.png' width='16' alt=''>";
}
- if($entry['AllowStart'] && $WasAccount){
+ if($entry['AllowStop'] && $WasAccount){
$actions .= " <input type='image' name='StopSingleService_".$name."' src='images/status_stop.png'
title='"._("Stop service")."'>";
}else{
$actions .= " <img src='images/empty.png' width='16' alt=''>";
}
- if($entry['AllowStart'] && $WasAccount){
+ if($entry['AllowRestart'] && $WasAccount){
$actions .= " <input type='image' name='RestartSingleService_".$name."' src='images/lists/reload.png'
title='"._("Restart service")."'>";
}else{
diff --git a/gosa-plugins/systems/admin/systems/services/class_goService.inc b/gosa-plugins/systems/admin/systems/services/class_goService.inc
index c763d5d57da08f3802bc514e5aa5846ff67b9884..2651b3693394bee256a50f5e675627ca8d4fb061 100644 (file)
$fields['AllowStop'] = $this->acl_is_writeable("stop");
$fields['AllowRestart'] = $this->acl_is_writeable("restart");
$fields['AllowRemove'] = $this->acl_is_removeable();
- $fields['AllowEdit'] = true;
+ $fields['AllowEdit'] = $this->acl_is_readable("");
return($fields);
}