Move middleware for game appeals

This commit is contained in:
2023-10-19 16:51:03 -04:00
parent a58d7ebb2a
commit db28e70b90

View File

@ -0,0 +1,8 @@
import { jsonError } from "../../../common.js";
export async function onRequest(context: RequestContext) {
if (!(context.data.current_user.permissions & (1 << 5)))
return jsonError("Forbidden", 403);
return await context.next();
}