Access check needs to be inverse
This commit is contained in:
parent
6589037329
commit
05a0d192c3
@ -3,8 +3,8 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
typeof has_access !== "boolean" ||
|
typeof has_access !== "boolean" ||
|
||||||
(has_access && typeof cookie !== "string") ||
|
(!has_access && typeof cookie !== "string") ||
|
||||||
(has_access &&
|
(!has_access &&
|
||||||
!cookie.match(
|
!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]+/,
|
/_\|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]+/,
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user