Make middleware hack again

This commit is contained in:
Regalijan 2023-10-30 17:01:22 -04:00
parent 5272c777a8
commit 68721845b0
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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;