From a58d7ebb2a6febd225668442ed0adaf6f11b5449 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:51:03 -0400 Subject: [PATCH] Add data team check to hammer route --- app/routes/hammer.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/routes/hammer.tsx b/app/routes/hammer.tsx index 504c9a7..41ba7c1 100644 --- a/app/routes/hammer.tsx +++ b/app/routes/hammer.tsx @@ -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, });