Add data team check to hammer route
This commit is contained in:
@ -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,
|
||||
});
|
||||
|
Reference in New Issue
Block a user