From ef5ee079c1c94f753037c003d0dd1cf4d10ac5cd Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 23 Jul 2008 07:03:41 +0000 Subject: [PATCH] Updated service dialog -Display correct action icons. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11755 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_divListSystemService.inc | 4 ++-- .../systems/admin/systems/services/class_goService.inc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_divListSystemService.inc b/gosa-plugins/systems/admin/systems/class_divListSystemService.inc index 8fc4e1cda..0921c943b 100644 --- a/gosa-plugins/systems/admin/systems/class_divListSystemService.inc +++ b/gosa-plugins/systems/admin/systems/class_divListSystemService.inc @@ -123,13 +123,13 @@ class divListSystemService extends MultiSelectWindow }else{ $actions .= " "; } - if($entry['AllowStart'] && $WasAccount){ + if($entry['AllowStop'] && $WasAccount){ $actions .= " "; }else{ $actions .= " "; } - if($entry['AllowStart'] && $WasAccount){ + if($entry['AllowRestart'] && $WasAccount){ $actions .= " "; }else{ diff --git a/gosa-plugins/systems/admin/systems/services/class_goService.inc b/gosa-plugins/systems/admin/systems/services/class_goService.inc index c763d5d57..2651b3693 100644 --- a/gosa-plugins/systems/admin/systems/services/class_goService.inc +++ b/gosa-plugins/systems/admin/systems/services/class_goService.inc @@ -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); } -- 2.30.2