mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #27413 from overleaf/rh-sp-remove-geoip
Only make GeoIP lookup for premium nudge experiment in SaaS environment GitOrigin-RevId: a0df9186dc957cd5ead6e798266874aebedabee5
This commit is contained in:
@@ -425,7 +425,7 @@ async function projectListPage(req, res, next) {
|
|||||||
let customerIoEnabled = false
|
let customerIoEnabled = false
|
||||||
const aiBlocked = !(await _canUseAIAssist(user))
|
const aiBlocked = !(await _canUseAIAssist(user))
|
||||||
const hasAiAssist = await _userHasAIAssist(user)
|
const hasAiAssist = await _userHasAIAssist(user)
|
||||||
if (!userIsMemberOfGroupSubscription && !inEnterpriseCommons) {
|
if (!userIsMemberOfGroupSubscription && !inEnterpriseCommons && isSaas) {
|
||||||
try {
|
try {
|
||||||
const ip = req.ip
|
const ip = req.ip
|
||||||
const { countryCode } = await GeoIpLookup.promises.getCurrencyCode(ip)
|
const { countryCode } = await GeoIpLookup.promises.getCurrencyCode(ip)
|
||||||
|
|||||||
Reference in New Issue
Block a user