diff --git a/backend/src/handlers/authorizer.ts b/backend/src/handlers/authorizer.ts index 240e5b7..05d2cad 100644 --- a/backend/src/handlers/authorizer.ts +++ b/backend/src/handlers/authorizer.ts @@ -18,7 +18,9 @@ export const authorizer = async ( const geo = await geoIP.lookup(ip) country = geo?.country ?? 'unknown' if ( - country in ['CU', 'IR', 'IQ', 'KP', 'RU', 'SY', 'GB', 'US', 'UA', 'AR'] + ['CU', 'IR', 'IQ', 'KP', 'RU', 'SY', 'GB', 'US', 'UA', 'AR'].includes( + country + ) ) { authorized = false }