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:
Franco Fichtner 2015-04-17 18:17:02 +02:00
parent d87c342f74
commit ca3cbda865
4 changed files with 11 additions and 7 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}