From 42cc6cd45faadb3b8315f9aa28b756536b21cc0d Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 30 Sep 2009 13:35:51 +0000 Subject: [PATCH] Made autonet button work again git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14416 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_termDNS.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index e336feb26..62d6f6890 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -258,7 +258,7 @@ class termDNS extends plugin { /* Call parent execute */ $smarty= get_smarty(); - $smarty->assign("autonetACL",$this->acl_is_writeable("macAddress").$this->acl_is_writeable("ipHostNumber")); + $smarty->assign("autonetACL",$this->acl_is_writeable("macAddress") && $this->acl_is_writeable("ipHostNumber")?"rw":""); $tmp = $this->plInfo(); foreach($tmp['plProvidedAcls'] as $name => $translation){ @@ -459,7 +459,7 @@ class termDNS extends plugin $smarty->assign("changeStateForRecords",$changeStateForRecords); $smarty->assign("staticAddress","*"); - $smarty->assign("autonetACL",$this->acl_is_writeable("macAddress").$this->acl_is_writeable("ipHostNumber")); + $smarty->assign("autonetACL",$this->acl_is_writeable("macAddress") && $this->acl_is_writeable("ipHostNumber")?"rw":""); $display.= $smarty->fetch(get_template_path('network.tpl', TRUE)); } -- 2.30.2