From 700d5d6bca9a56c3d15daa0a74903bbd9407eb05 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:29 -0400 Subject: [PATCH] History tool should check permissions integer instead of the user object --- app/routes/hammer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, });