From 53c0ad0d4b60d7b59cfdee17de201177cff183c6 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 31 Aug 2007 08:16:32 +0000 Subject: [PATCH] Updated acl handling for dns attributes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7174 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_servDNSeditZone.inc | 3 ++- plugins/admin/systems/class_termDNS.inc | 1 - plugins/admin/systems/network.tpl | 27 ++++++++++++------- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc index 615ede4bc..1605df4b3 100644 --- a/plugins/admin/systems/class_servDNSeditZone.inc +++ b/plugins/admin/systems/class_servDNSeditZone.inc @@ -205,7 +205,8 @@ class servdnseditZone extends plugin /* Fill templating stuff */ $smarty= get_smarty(); $ui = get_userinfo(); - $smarty->assign("ACLs",$ui->get_permissions($this->dn,"server/servdns")); + + $smarty->assign("ACLs",$this->parent->getacl("")); $display= ""; /* Open Zone Entry Edit Dialog diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index b816a40b3..db458e563 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -745,7 +745,6 @@ class termDNS extends plugin /* Hide all dns specific code, if dns is not available */ - $DNSenabled = false; foreach($_SESSION['config']->data['TABS']['SERVERSERVICE'] as $tab){ if(preg_match("/^servdns$/",$tab['CLASS'])){ $tmp['plProvidedAcls']["Records"] = _("DNS records"); diff --git a/plugins/admin/systems/network.tpl b/plugins/admin/systems/network.tpl index a6c883619..ec5d17c93 100644 --- a/plugins/admin/systems/network.tpl +++ b/plugins/admin/systems/network.tpl @@ -7,12 +7,18 @@ - + {if $DNS_is_account==true} -- 2.30.2
+{render acl=$ipHostNumberACL} + +{/render} +
{$staticAddress} - +{render acl=$macAddressACL} + +{/render} {if $autonet==true} @@ -54,23 +60,24 @@ + {if $DNSAccount == true} + {$changeStateForRecords}"/> {else} + + changeState('AddNewRecord');"/> {/if} + {t}Enable DNS for this device{/t} - + {if $DNSAccount == true}
{else} @@ -81,7 +88,7 @@
{render acl=$zoneNameACL} - {html_options values=$ZoneKeys output=$Zones selected=$zoneName} {/render} @@ -91,7 +98,7 @@ {t}TTL{/t} {render acl=$dNSTTLACL} - + {/render}