From 96decd7399eced4070e77b58db4ffa0306e146cc Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Fri, 27 Jun 2025 17:23:45 -0700 Subject: [PATCH] Fixed wrong permission --- apps/hub/app/(app)/admin/report/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hub/app/(app)/admin/report/layout.tsx b/apps/hub/app/(app)/admin/report/layout.tsx index e13fe5ac..902f9a8a 100644 --- a/apps/hub/app/(app)/admin/report/layout.tsx +++ b/apps/hub/app/(app)/admin/report/layout.tsx @@ -8,7 +8,7 @@ export default async function ReportLayout({ children }: { children: React.React const user = session.user; - if (!user?.permissions.includes("ADMIN_EVENT")) + if (!user?.permissions.includes("ADMIN_USER")) return ; return <>{children};