Merge pull request #22387 from overleaf/em-error-assist-paywalls

Make paywalls on standalone Error Assist redirect to interstitial page

GitOrigin-RevId: 1c6c0b314ca61af8aca8dc23cdc959fceafa13b2
This commit is contained in:
Eric Mc Sween
2024-12-10 08:11:14 -05:00
committed by Copybot
parent 060d952858
commit 853060bf01

View File

@@ -526,15 +526,13 @@ const _ProjectController = {
}
}
let allowedFreeTrial = true
if (privilegeLevel == null || privilegeLevel === PrivilegeLevels.NONE) {
return res.sendStatus(401)
}
if (subscription != null) {
allowedFreeTrial = false
}
const allowedFreeTrial =
subscription == null ||
isStandaloneAiAddOnPlanCode(subscription.planCode)
let wsUrl = Settings.wsUrl
let metricName = 'load-editor-ws'