diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/fronter.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/api/fronter.php b/api/fronter.php index 0dd6e99..c41562f 100644 --- a/api/fronter.php +++ b/api/fronter.php @@ -1,7 +1,10 @@ <?php -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc"; global $isLoggedIn; -if (!$isLoggedIn) header("Location: /-/login") and die(); +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc"; global $isLoggedIn; global $isLowerLoggedIn; +if (!$isLoggedIn || $isLowerLoggedIn) { + header("Location: /-/login"); + die(); +} $system = $_GET['s'] ?? null; $member = $_GET['m'] ?? null; |