From 03e1700a01dd3b425ec5d6cb7bd9684360900a53 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 07 Jun 2012 06:59:07 -0400
Subject: [PATCH] FS#1814 - Add option for custom php.ini for execution of ispconfig server.php script
---
interface/web/dns/dns_template_edit.php | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/interface/web/dns/dns_template_edit.php b/interface/web/dns/dns_template_edit.php
index 3f59627..5dda4da 100644
--- a/interface/web/dns/dns_template_edit.php
+++ b/interface/web/dns/dns_template_edit.php
@@ -48,6 +48,8 @@
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
+if($_SESSION["s"]["user"]["typ"] != 'admin') die('Access denied for non admin users.');
+
class page_action extends tform_actions {
}
--
Gitblit v1.9.1