From 7fcccc8f09afd7f4a524ff598b43e15d678905eb Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sun, 21 May 2017 09:07:56 +0545 Subject: Diag DNS do not show Add Alias if no priv to add alais --- src/usr/local/www/diag_dns.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php index 74238f1..7fe2acb 100644 --- a/src/usr/local/www/diag_dns.php +++ b/src/usr/local/www/diag_dns.php @@ -84,7 +84,7 @@ function resolve_host_addresses($host) { return $resolved; } -if (isset($_POST['create_alias']) && (is_hostname($host) || is_ipaddr($host))) { +if (isAllowedPage('firewall_aliases_edit.php') && isset($_POST['create_alias']) && (is_hostname($host) || is_ipaddr($host))) { $resolved = gethostbyname($host); $type = "hostname"; if ($resolved) { @@ -234,7 +234,7 @@ $form->addGlobal(new Form_Button( 'fa-search' ))->addClass('btn-primary'); -if (!empty($resolved)) { +if (!empty($resolved) && isAllowedPage('firewall_aliases_edit.php')) { if ($alias_exists) { $button_text = gettext("Update alias"); } else { -- cgit v1.1