mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
05606dfb56
Show /403 instead of toasting or staying on the denied screen when the API returns 403 or a non-admin opens an admin route.
9 lines
216 B
TypeScript
9 lines
216 B
TypeScript
'use client';
|
|
|
|
import { ForbiddenPage } from '@/components/layout/forbidden-page';
|
|
|
|
/** Next.js convention: rendered when forbidden() is called. */
|
|
export default function Forbidden() {
|
|
return <ForbiddenPage />;
|
|
}
|