diff options
author | Phil Davis <phil@jankaritech.com> | 2017-05-21 09:07:56 +0545 |
---|---|---|
committer | Phil Davis <phil@jankaritech.com> | 2017-05-21 09:07:56 +0545 |
commit | 7fcccc8f09afd7f4a524ff598b43e15d678905eb (patch) | |
tree | 1a2fe6f9f450bf6e26fafec12c37020a3170f7f8 | |
parent | 8ce9725941732f11822121cfb4b51d19ed064533 (diff) | |
download | pfsense-7fcccc8f09afd7f4a524ff598b43e15d678905eb.zip pfsense-7fcccc8f09afd7f4a524ff598b43e15d678905eb.tar.gz |
Diag DNS do not show Add Alias if no priv to add alais
-rw-r--r-- | src/usr/local/www/diag_dns.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |