Code

Updated service dialog
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jul 2008 07:03:41 +0000 (07:03 +0000)
committerhickert <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

gosa-plugins/systems/admin/systems/class_divListSystemService.inc
gosa-plugins/systems/admin/systems/services/class_goService.inc

index 8fc4e1cdac66a7c7f7eb0ebd5bbc293155ecb016..0921c943bd6e1f415ea3006604f1be992c382f77 100644 (file)
@@ -123,13 +123,13 @@ class divListSystemService extends MultiSelectWindow
       }else{
         $actions .= "&nbsp;<img src='images/empty.png' width='16' alt=''>";
       }
-      if($entry['AllowStart'] && $WasAccount){
+      if($entry['AllowStop'] && $WasAccount){
         $actions .= "&nbsp;<input type='image' name='StopSingleService_".$name."' src='images/status_stop.png'
                             title='"._("Stop service")."'>";
       }else{
         $actions .= "&nbsp;<img src='images/empty.png' width='16' alt=''>";
       }
-      if($entry['AllowStart'] && $WasAccount){
+      if($entry['AllowRestart'] && $WasAccount){
         $actions .= "&nbsp;<input type='image' name='RestartSingleService_".$name."' src='images/lists/reload.png'
                             title='"._("Restart service")."'>";
       }else{
index c763d5d57da08f3802bc514e5aa5846ff67b9884..2651b3693394bee256a50f5e675627ca8d4fb061 100644 (file)
@@ -83,7 +83,7 @@ class goService extends plugin{
     $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);
   }