From 3f770abdf874c9aad3d83dbd8ccd483b27f38b56 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 22 Jul 2008 08:31:32 +0000 Subject: [PATCH] Updated host DNS setup. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11738 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_termDNS.inc | 9 ++++----- gosa-plugins/systems/admin/systems/network.tpl | 4 +--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index cd2dedf23..0f6bce660 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -59,7 +59,7 @@ class termDNS extends plugin /* DNS attributes */ - var $DNSattributes = array("dNSClass","zoneName","dNSTTL"); + var $DNSattributes = array("zoneName","dNSTTL"); var $DNS_is_account = false; var $initially_was_account = false; var $dnsEntry = array(); @@ -547,7 +547,7 @@ class termDNS extends plugin if(($this->DNSenabled) && (isset($_POST['network_tpl_posted'])) && $this->acl_is_writeable("dnsSetup")){ /* Check for posted record changes */ - if(is_array($this->dnsEntry['RECORDS']) && $this->acl_is_writeable("Records")){ + if(is_array($this->dnsEntry['RECORDS'])){ foreach($this->dnsEntry['RECORDS'] as $key => $value){ /* Check if type has changed */ @@ -560,14 +560,13 @@ class termDNS extends plugin } } } + /* Get all basic DNS attributes (TTL, Clas ..)*/ foreach($this->DNSattributes as $attr){ - if(isset($_POST[$attr]) && $this->acl_is_writeable($attr)){ + if(isset($_POST[$attr])){ $this->dnsEntry[$attr] = $_POST[$attr]; } } - - } if($this->hide_dns_check_box){ $this->DNS_is_account = true; diff --git a/gosa-plugins/systems/admin/systems/network.tpl b/gosa-plugins/systems/admin/systems/network.tpl index f1965af47..05c87fe64 100644 --- a/gosa-plugins/systems/admin/systems/network.tpl +++ b/gosa-plugins/systems/admin/systems/network.tpl @@ -39,9 +39,7 @@ {render acl=$macAddressACL} {/render} -{render acl=$ipHostNumberACL.$macAddressACL} - -{/render} + {if $dhcpEnabled} -- 2.30.2