Oopsie that needs to be an AND check
This commit is contained in:
parent
05a0d192c3
commit
acfd2be227
@ -2,7 +2,7 @@ export async function onRequest(context: RequestContext) {
|
||||
const { current_user: currentUser } = context.data;
|
||||
|
||||
if (
|
||||
!(currentUser?.permissions & (1 << 5)) ||
|
||||
!(currentUser?.permissions & (1 << 5)) &&
|
||||
!(currentUser?.permissions & (1 << 12))
|
||||
)
|
||||
return new Response('{"error":"Forbidden"}', {
|
||||
|
Loading…
x
Reference in New Issue
Block a user