Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make middleware hack again
  • Loading branch information
regalijan committed Oct 30, 2023
1 parent 5272c77 commit 6872184
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/api/appeals/[id]/_middleware.ts
Expand Up @@ -12,6 +12,8 @@ export async function onRequestPost(context: RequestContext) {
if (!(permissions & (1 << 0)) && !(permissions & (1 << 11)))
return jsonError("Forbidden", 403);

if (pathname.endsWith("/bans")) return await context.next();

const { body } = context.data;
const id = context.params.id as string;

Expand Down

0 comments on commit 6872184

Please sign in to comment.