From: hickert Date: Wed, 23 Jul 2008 07:48:39 +0000 (+0000) Subject: Fixe X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af270414e1a74619ef30dac5544048e672a00826;p=gosa.git Fixe git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11760 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index 35ec21d23..afaa4349f 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -722,7 +722,7 @@ class termDNS extends plugin if($this->dhcpEnabled && $this->acl_is_writeable("dhcpSetup")) { if(count($this->dhcpHostEntry) == 0){ - $this->dialog = new dhcpHost($parent,$this->dhcpParentNode,TRUE); + $this->dialog = new dhcpHost($this->parent,$this->dhcpParentNode,TRUE); $this->dialog->cn = $this->cn; $this->dialog->dhcpHWAddress = "ethernet ".$this->macAddress; if(!empty($this->ipHostNumber)){ diff --git a/gosa-plugins/systems/admin/systems/services/class_goService.inc b/gosa-plugins/systems/admin/systems/services/class_goService.inc index 2651b3693..f02f7cc97 100644 --- a/gosa-plugins/systems/admin/systems/services/class_goService.inc +++ b/gosa-plugins/systems/admin/systems/services/class_goService.inc @@ -79,9 +79,10 @@ class goService extends plugin{ $fields['Message'] = _("Empty service"); /* Allow/disallow some functions */ - $fields['AllowStart'] = $this->acl_is_writeable("start"); - $fields['AllowStop'] = $this->acl_is_writeable("stop"); - $fields['AllowRestart'] = $this->acl_is_writeable("restart"); + $sf = !empty($this->StatusFlag); + $fields['AllowStart'] = $sf && $this->acl_is_writeable("start"); + $fields['AllowStop'] = $sf && $this->acl_is_writeable("stop"); + $fields['AllowRestart'] = $sf && $this->acl_is_writeable("restart"); $fields['AllowRemove'] = $this->acl_is_removeable(); $fields['AllowEdit'] = $this->acl_is_readable(""); return($fields);