diff --git a/functions/api/gme/_middleware.ts b/functions/api/gme/_middleware.ts index f7400bb..cae98e8 100644 --- a/functions/api/gme/_middleware.ts +++ b/functions/api/gme/_middleware.ts @@ -1,7 +1,14 @@ export async function onRequest(context: RequestContext) { const { current_user: currentUser } = context.data; - if (!currentUser || !(currentUser & (1 << 5))) + if ( + !currentUser || + ![ + "165594923586945025", + "289372404541554689", + "396347223736057866", + ].includes(currentUser.id) + ) return new Response('{"error":"Forbidden"}', { headers: { "content-type": "application/json",