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
This commit is contained in:
parent
8ce9725941
commit
7fcccc8f09
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user