MCPcopy Create free account
hub / github.com/codecombat/codecombat / canAccessCampaignFreelyFromChina

Method canAccessCampaignFreelyFromChina

app/models/User.js:1392–1392  ·  view source on GitHub ↗
(campaignID)

Source from the content-addressed store, hash-verified

1390 // features.china is set globally for our China server
1391 showChinaVideo () { return (features?.china != null ? features?.china : false) || (features?.chinaInfra != null ? features?.chinaInfra : false) }
1392 canAccessCampaignFreelyFromChina (campaignID) { return (utils.isCodeCombat && (campaignID === '55b29efd1cd6abe8ce07db0d')) || (utils.isOzaria && (campaignID === '5d1a8368abd38e8b5363bad9')) } // teacher can only access CS1 or CH1 freely in China
1393 isCreatedByTarena () { return (this.get('clientCreator') === '60fa65059e17ca0019950fdd') || (this.get('clientCreator') === '5c80a2a0d78b69002448f545') } // ClientID of Tarena2/Tarena3 on koudashijie.com
1394 isILK () {
1395 return (this.get('clientCreator') === '6082ec9996895d00a9b96e90') || (this.get('clientPermissions') || []).some(p => p.client === '6082ec9996895d00a9b96e90')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected