mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user