Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add data team check to hammer route
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 6e6863b commit a58d7eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/routes/hammer.tsx
Expand Up @@ -28,7 +28,10 @@ export async function loader({ context }: { context: RequestContext }) {
status: 401,
});

if (!(currentUser.permissions & (1 << 5)))
if (
!(currentUser.permissions & (1 << 5)) &&
!(currentUser.permissions & (1 << 8))
)
throw new Response(null, {
status: 403,
});
Expand Down

0 comments on commit a58d7eb

Please sign in to comment.