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

Method isILK

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

Source from the content-addressed store, hash-verified

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')
1396 }
1397
1398 isICode () {
1399 return (this.get('clientCreator') === '61393874c324991d0f68fc70') || (this.get('clientPermissions') || []).some(p => p.client === '61393874c324991d0f68fc70')

Callers 4

hideTopRightNavMethod · 0.95
hideFooterMethod · 0.95
hideOtherProductCTAsMethod · 0.95
onSubmitFormMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected