From: hickert Date: Fri, 31 Aug 2007 08:16:32 +0000 (+0000) Subject: Updated acl handling for dns attributes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=53c0ad0d4b60d7b59cfdee17de201177cff183c6;p=gosa.git Updated acl handling for dns attributes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7174 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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}
+{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}