mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-25 00:00:52 -04:00
- show 403 message
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class AuthHandler < Kemal::Handler
|
||||
|
||||
if request_path_startswith env, ["/admin", "/api/admin"]
|
||||
unless storage.verify_admin cookie.value
|
||||
return env.response.status_code = 401
|
||||
env.response.status_code = 403
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user