Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Oopsie that needs to be an AND check
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 05a0d19 commit acfd2be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/uploads/_middleware.ts
Expand Up @@ -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"}', {
Expand Down

0 comments on commit acfd2be

Please sign in to comment.