Make middleware hack again

This commit is contained in:
2023-10-30 17:01:22 -04:00
parent 5272c777a8
commit 68721845b0

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;