Skip to content

Commit

Permalink
fix(403): use PHP's shortcut for this
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflembeck committed May 3, 2022
1 parent d5c74c9 commit c2167d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/getLocations.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
if (Util::getSetting('cp_auth')) {
$user = $request_context->getUser();
if (!(isset($user) && $user->isAdmin())) {
header('403 Forbidden');
exit();
http_response_code(403);
die('Forbidden');
}
} elseif (!$admin) {
header('403 Forbidden');
exit();
http_response_code(403);
die('Forbidden');
}

$remote_cache = array();
Expand Down

0 comments on commit c2167d2

Please sign in to comment.