feat: redirect to not allowed page

This commit is contained in:
2025-05-31 18:39:57 +02:00
parent f8772f8de2
commit 68493be36e

View File

@ -33,7 +33,7 @@ const AdminLayout: FC = () => {
}
if (!profile?.isAdmin) {
return <Navigate to="/" />;
return <Navigate to="/not-allowed" />;
}
return <Outlet />;