Add data team check to hammer route

This commit is contained in:
2023-10-19 16:51:03 -04:00
parent 6e6863b816
commit a58d7ebb2a

View File

@ -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,
});