Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
History tool should check permissions integer instead of the user object
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent e72a1b9 commit 700d5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/hammer.tsx
Expand Up @@ -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,
});
Expand Down

0 comments on commit 700d5d6

Please sign in to comment.