Make middleware hack again
This commit is contained in:
parent
5272c777a8
commit
68721845b0
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user