mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
captive portal: avoid redirect loop on status vs. service
Some users may not have service privileges so that creates an endless redirect loop. This indicates that there's not much use of the current ACL in the wild or it is not used in a way to decouple captive portal administraion and operation.
This commit is contained in:
parent
d87c342f74
commit
ca3cbda865
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Copyright (C) 2014-2015 Deciso B.V.
|
||||
Copyright (C) 2014-2015 Deciso B.V.
|
||||
Copyright (C) 2007 Marcel Wiget <mwiget@mac.com>.
|
||||
All rights reserved.
|
||||
|
||||
@ -38,7 +39,7 @@ if (isset($_POST['zone']))
|
||||
$cpzone = $_POST['zone'];
|
||||
|
||||
if (empty($cpzone)) {
|
||||
header("Location: services_captiveportal_zones.php");
|
||||
header("Location: status_captiveportal.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Copyright (C) 2014 Deciso B.V.
|
||||
Copyright (C) 2014 Deciso B.V.
|
||||
Copyright (C) 2007 Marcel Wiget <mwiget@mac.com>.
|
||||
All rights reserved.
|
||||
|
||||
@ -38,7 +39,7 @@ if (isset($_POST['zone']))
|
||||
$cpzone = $_POST['zone'];
|
||||
|
||||
if (empty($cpzone)) {
|
||||
header("Location: services_captiveportal_zones.php");
|
||||
header("Location: status_captiveportal.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Copyright (C) 2014-2015 Deciso B.V.
|
||||
Copyright (C) 2007 Marcel Wiget <mwiget@mac.com>.
|
||||
@ -38,7 +39,7 @@ if (isset($_POST['zone']))
|
||||
$cpzone = $_POST['zone'];
|
||||
|
||||
if (empty($cpzone)) {
|
||||
header("Location: services_captiveportal_zones.php");
|
||||
header("Location: status_captiveportal.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Copyright (C) 2014-2015 Deciso B.V.
|
||||
Copyright (C) 2014-2015 Deciso B.V.
|
||||
Copyright (C) 2007 Marcel Wiget <mwiget@mac.com>.
|
||||
All rights reserved.
|
||||
|
||||
@ -38,7 +39,7 @@ if (isset($_POST['zone']))
|
||||
$cpzone = $_POST['zone'];
|
||||
|
||||
if (empty($cpzone)) {
|
||||
header("Location: services_captiveportal_zones.php");
|
||||
header("Location: status_captiveportal.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user