Commit ca3cbda8 authored by Franco Fichtner's avatar Franco Fichtner

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.
parent d87c342f
<?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;
}
......
<?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;
}
......
<?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;
}
......
<?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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment