History tool should check permissions integer instead of the user object
This commit is contained in:
parent
e72a1b92da
commit
700d5d6bca
@ -22,7 +22,7 @@ export async function loader({ context }: { context: RequestContext }) {
|
|||||||
status: 401,
|
status: 401,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!(currentUser & (1 << 5)))
|
if (!(currentUser.permissions & (1 << 5)))
|
||||||
throw new Response(null, {
|
throw new Response(null, {
|
||||||
status: 403,
|
status: 403,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user