Files
Jyotisha/frontend/src/app/forbidden.tsx
T
Jesse_Chen 0d7e5a26d5 fix(admin): break denied-session redirect loop
Preserve 403/503 responses instead of redirecting them through the Caddy root, and recover Owner only for the sole loginable synced identity admin.
2026-08-07 11:06:13 +08:00

24 lines
675 B
TypeScript

export default function Forbidden() {
return (
<main
style={{
alignItems: "center",
background: "#11100e",
color: "#f2eee6",
display: "flex",
minHeight: "100vh",
justifyContent: "center",
padding: "2rem",
}}
>
<section style={{ maxWidth: "32rem", textAlign: "center" }}>
<p style={{ color: "#c8a96b", letterSpacing: "0.12em" }}>403</p>
<h1>无权访问后台</h1>
<p style={{ color: "#b8b1a5", lineHeight: 1.7 }}>
当前账号已登录,但没有后台访问权限。请联系管理员核对角色授权。
</p>
</section>
</main>
);
}