Error boundary

This commit is contained in:
PxlLoewe
2025-03-26 14:04:15 -07:00
parent 9551202370
commit c8d91b684f
21 changed files with 414 additions and 298 deletions

View File

@@ -13,7 +13,7 @@ export default async ({ children }: { children: React.ReactNode }) => {
},
});
if (!user?.permissions.includes("ADMIN_STATION"))
if (!user?.permissions.includes("ADMIN_KEYWORD"))
return <Error title="Keine Berechtigung" statusCode={403} />;
return <>{children}</>;