From ef0a3865e6b7d6be47cb524381d40ef299d3a083 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 28 Jun 2009 09:41:08 -0400
Subject: [PATCH] Removed option to create dns templates by clients.

---
 interface/web/dns/lib/module.conf.php |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/interface/web/dns/lib/module.conf.php b/interface/web/dns/lib/module.conf.php
index d233ba2..ccb560d 100644
--- a/interface/web/dns/lib/module.conf.php
+++ b/interface/web/dns/lib/module.conf.php
@@ -32,11 +32,12 @@
 				  'target' 	=> 'content',
 				  'link'	=> 'dns/dns_wizard.php');
 
-
-$items[] = array( 'title' 	=> "Templates",
-				  'target' 	=> 'content',
-				  'link'	=> 'dns/dns_template_list.php');
-
+if($_SESSION["s"]["user"]["typ"] == 'admin') {
+				  
+	$items[] = array( 	'title' 	=> "Templates",
+				  		'target' 	=> 'content',
+				  		'link'		=> 'dns/dns_template_list.php');
+}
 
 
 $module["nav"][] = array(	'title'	=> 'DNS Wizard',

--
Gitblit v1.9.1