From: hickert Date: Thu, 30 Aug 2007 08:26:02 +0000 (+0000) Subject: Removed not necessary buttons : remove,edit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b33f312c9258d76a84fda5f12d5aac3cb3e1e92;p=gosa.git Removed not necessary buttons : remove,edit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7166 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index 34af08f03..92d0b2a78 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -69,6 +69,7 @@ class servdns extends goService /* Fill templating stuff */ $smarty= get_smarty(); + $smarty->assign("is_createable",$this->acl_is_createable()); $display= ""; /* Do we need to flip is_account state? @@ -179,8 +180,10 @@ class servdns extends goService /* Add entries to divlist */ - $editImg = " - "; + $editImg = ""; + if($this->acl_is_removeable()){ + $editImg.= ""; + } $link = "%s"; foreach($this->Zones as $zone => $values ){ diff --git a/plugins/admin/systems/servdns.tpl b/plugins/admin/systems/servdns.tpl index 629093779..d19027c72 100644 --- a/plugins/admin/systems/servdns.tpl +++ b/plugins/admin/systems/servdns.tpl @@ -3,9 +3,11 @@ {$ZoneList} + {if $is_createable} - - + {else} + + {/if}