diff options
| author | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:59:08 -0700 |
|---|---|---|
| committer | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:59:08 -0700 |
| commit | 371800f1cb0987b3d77d9babceb4ffd99e8cd060 (patch) | |
| tree | b776cb29528fc4d57bc41425df6b40afdc22222f /php | |
| parent | 070a27baa8f93c3bf191459b88d24d7430a78899 (diff) | |
Diffstat (limited to 'php')
| -rw-r--r-- | php/user.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/php/user.php b/php/user.php index 9521dc5..7eafd20 100644 --- a/php/user.php +++ b/php/user.php @@ -52,9 +52,12 @@ function require_admin(): void { return; } - http_response_code(403); + if (get_user_id() === null) { + http_response_code(401); + } else { + http_response_code(403); + } - render_content(ROOT . '/html/forbidden.html'); exit; } |
