Skip to content

Commit 110061f

Browse files
committed
fix(homecoming/admin): api 가드 설정
1 parent 59f7bf6 commit 110061f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
export default function HomecomingAdminLayout({children}) {
2-
return children;
3-
// <ApiCodeGuard requiredRole="ORGANIZER" nextOverride="/event/homecoming/admin">
1+
import ApiCodeGuard from "@/components/auth/ApiCodeGuard";
42

5-
// </ApiCodeGuard>
3+
export default function HomecomingAdminLayout({children}) {
4+
return (
5+
<ApiCodeGuard requiredRole="ORGANIZER" nextOverride="/event/homecoming/admin">
6+
{children}
7+
</ApiCodeGuard>
8+
);
69
}

0 commit comments

Comments
 (0)