From 1e3262d6911737077837d12fb51f9da0ed6eb355 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 18 May 2016 13:54:21 +0200 Subject: [PATCH] do not show dns-editor to customers if not allowed and they enter the URL manually Signed-off-by: Michael Kaufmann (d00p) --- customer_domains.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customer_domains.php b/customer_domains.php index f9432f1b..fd8a0425 100644 --- a/customer_domains.php +++ b/customer_domains.php @@ -920,7 +920,7 @@ if ($page == 'overview') { eval("echo \"" . getTemplate("domains/domain_ssleditor") . "\";"); } -} elseif ($page == 'domaindnseditor' && Settings::Get('system.dnsenabled') == '1') { +} elseif ($page == 'domaindnseditor' && $userinfo['dnsenabled'] == '1' && Settings::Get('system.dnsenabled') == '1') { require_once __DIR__.'/dns_editor.php'; }