mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Honor $g['services_dhcp_server_enable']
This commit is contained in:
parent
e3a13b0068
commit
2ee0410f9e
@ -36,9 +36,13 @@
|
||||
##|*MATCH=services_dhcp.php*
|
||||
##|-PRIV
|
||||
|
||||
|
||||
require("guiconfig.inc");
|
||||
|
||||
if(!$g['services_dhcp_server_enable']) {
|
||||
Header("Location: /");
|
||||
exit;
|
||||
}
|
||||
|
||||
$if = $_GET['if'];
|
||||
if ($_POST['if'])
|
||||
$if = $_POST['if'];
|
||||
|
||||
@ -36,6 +36,10 @@
|
||||
##|*MATCH=services_dhcp_edit.php*
|
||||
##|-PRIV
|
||||
|
||||
if(!$g['services_dhcp_server_enable']) {
|
||||
Header("Location: /");
|
||||
exit;
|
||||
}
|
||||
|
||||
require("guiconfig.inc");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user