mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow hostname/ip to be deleted if the captive portal is not enabled
This commit is contained in:
parent
a273f7bdff
commit
cc52daa63d
@ -63,7 +63,7 @@ $pgtitle = array(gettext("Services"), gettext("Captive Portal"), $a_cp[$cpzone][
|
||||
$pglinks = array("", "services_captiveportal_zones.php", "services_captiveportal.php?zone=" . $cpzone, "@self");
|
||||
$shortcut_section = "captiveportal";
|
||||
|
||||
if ($_POST['act'] == "del" && !empty($cpzone) && isset($cpzoneid)) {
|
||||
if ($_POST['act'] == "del" && !empty($cpzone)) {
|
||||
$a_allowedhostnames =& $a_cp[$cpzone]['allowedhostname'];
|
||||
if ($a_allowedhostnames[$_POST['id']]) {
|
||||
$ipent = $a_allowedhostnames[$_POST['id']];
|
||||
|
||||
@ -60,7 +60,7 @@ $pgtitle = array(gettext("Services"), gettext("Captive Portal"), $a_cp[$cpzone][
|
||||
$pglinks = array("", "services_captiveportal_zones.php", "services_captiveportal.php?zone=" . $cpzone, "@self");
|
||||
$shortcut_section = "captiveportal";
|
||||
|
||||
if ($_POST['act'] == "del" && !empty($cpzone) && isset($cpzoneid)) {
|
||||
if ($_POST['act'] == "del" && !empty($cpzone)) {
|
||||
$a_allowedips =& $config['captiveportal'][$cpzone]['allowedip'];
|
||||
|
||||
if ($a_allowedips[$_POST['id']]) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user