Change GME middleare permission check

This commit is contained in:
regalijan 2023-10-19 16:49:40 -04:00
parent cef3263722
commit 13dfe7d428
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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",