feat(frontend): add a dedicated 403 forbidden page

Show /403 instead of toasting or staying on the denied screen when
the API returns 403 or a non-admin opens an admin route.
This commit is contained in:
ryan
2026-09-02 18:39:11 +08:00
parent b7e5e811d1
commit 05606dfb56
9 changed files with 129 additions and 9 deletions
+8 -1
View File
@@ -1919,12 +1919,19 @@
"previousPage": "Previous page",
"home": "Home"
},
"forbidden": {
"label": "Forbidden",
"description": "You are signed in, but you do not have permission to access this resource. Ask an administrator if you need access.",
"previousPage": "Previous page",
"home": "Home"
},
"providers": {
"titleUpdater": {
"login": "Login",
"register": "Register",
"admin": "Admin",
"dashboard": "Dashboard"
"dashboard": "Dashboard",
"forbidden": "Forbidden"
}
},
"metadata": {