diff --git a/app/routes/hammer.tsx b/app/routes/hammer.tsx index 4e664d8..b267b4d 100644 --- a/app/routes/hammer.tsx +++ b/app/routes/hammer.tsx @@ -22,7 +22,7 @@ export async function loader({ context }: { context: RequestContext }) { status: 401, }); - if (!(currentUser & (1 << 5))) + if (!(currentUser.permissions & (1 << 5))) throw new Response(null, { status: 403, });