Fix validity check

This commit is contained in:
Ajay
2025-04-21 19:39:46 -04:00
parent cfd61dc8dd
commit 08ba5c21b1

View File

@@ -113,7 +113,7 @@ export function validSubmittedData(userAgent: string): boolean {
return true; return true;
} }
return new RegExp(config.validityCheck.userAgent).test(userAgent); return !new RegExp(config.validityCheck.userAgent).test(userAgent);
} }
export async function canSubmitGlobal(userID: HashedUserID): Promise<CanSubmitGlobalResult> { export async function canSubmitGlobal(userID: HashedUserID): Promise<CanSubmitGlobalResult> {