diff --git a/apps/web/src/app/(app)/layout.tsx b/apps/web/src/app/(app)/layout.tsx index d579f0b..22cb368 100644 --- a/apps/web/src/app/(app)/layout.tsx +++ b/apps/web/src/app/(app)/layout.tsx @@ -9,7 +9,7 @@ export default async function AuthLayout(props: { admin: React.ReactNode; }) { const session = await auth(); - const isAdmin = session?.user.role === "ADMIN"; + const isAdmin = session?.user.role === "admin"; const isMaintenance = await get("maintenance"); @@ -20,7 +20,7 @@ export default async function AuthLayout(props: { return (
- {session?.user.role === "ADMIN" && } + {session?.user.role === "admin" && }
diff --git a/apps/web/src/components/footer.tsx b/apps/web/src/components/footer.tsx index 6a48499..da82f6c 100644 --- a/apps/web/src/components/footer.tsx +++ b/apps/web/src/components/footer.tsx @@ -12,7 +12,7 @@ export function Footer() { const { resolvedTheme } = useTheme(); const { collapsed } = useSidebarContext(); const { data: session } = useSession(); - const isAdmin = session?.user.role === "ADMIN"; + const isAdmin = session?.user.role === "admin"; return (