diff --git a/functions/api/data-transfers/create.ts b/functions/api/data-transfers/create.ts index 48c87bd..1b9adc3 100644 --- a/functions/api/data-transfers/create.ts +++ b/functions/api/data-transfers/create.ts @@ -3,8 +3,8 @@ export async function onRequestPost(context: RequestContext) { if ( typeof has_access !== "boolean" || - (has_access && typeof cookie !== "string") || - (has_access && + (!has_access && typeof cookie !== "string") || + (!has_access && !cookie.match( /_\|WARNING:-DO-NOT-SHARE-THIS\.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items\.\|_[A-F\d]+/, ))