Access check needs to be inverse

This commit is contained in:
regalijan 2023-10-19 16:50:37 -04:00
parent 6589037329
commit 05a0d192c3
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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]+/,
))