History tool should check permissions integer instead of the user object

This commit is contained in:
regalijan 2023-10-19 16:50:29 -04:00
parent e72a1b92da
commit 700d5d6bca
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -22,7 +22,7 @@ export async function loader({ context }: { context: RequestContext }) {
status: 401,
});
if (!(currentUser & (1 << 5)))
if (!(currentUser.permissions & (1 << 5)))
throw new Response(null, {
status: 403,
});