mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Diag DNS do not show Add Alias if no priv to add alais
(cherry picked from commit7fcccc8f09) (cherry picked from commitf54a3ede59)
This commit is contained in:
parent
7de0b827f3
commit
d9f7babc79
@ -116,7 +116,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) {
|
||||
@ -281,7 +281,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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user