Error boundary
This commit is contained in:
@@ -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}</>;
|
||||
|
||||
Reference in New Issue
Block a user