We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f7bf6 commit 110061fCopy full SHA for 110061f
src/app/event/homecoming/admin/layout.js
@@ -1,6 +1,9 @@
1
-export default function HomecomingAdminLayout({children}) {
2
- return children;
3
- // <ApiCodeGuard requiredRole="ORGANIZER" nextOverride="/event/homecoming/admin">
+import ApiCodeGuard from "@/components/auth/ApiCodeGuard";
4
5
- // </ApiCodeGuard>
+export default function HomecomingAdminLayout({children}) {
+ return (
+ <ApiCodeGuard requiredRole="ORGANIZER" nextOverride="/event/homecoming/admin">
6
+ {children}
7
+ </ApiCodeGuard>
8
+ );
9
}
0 commit comments