MCPcopy Index your code
hub / github.com/codecombat/codecombat / freeOnly

Method freeOnly

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

Source from the content-addressed store, hash-verified

1238 setToSpanish () { return _.string.startsWith((this.get('preferredLanguage') || ''), 'es') }
1239
1240 freeOnly () {
1241 return this.isStudent() || (features.freeOnly && !this.isPremium()) || (this.isAnonymous() && (this.get('country') === 'taiwan'))
1242 }
1243
1244 subscribe (token, options = {}) {
1245 let left

Callers 7

getRenderDataMethod · 0.80
shouldShowMethod · 0.80
onUnlockButtonClickedMethod · 0.80
onUnlockButtonClickedMethod · 0.80
onHeroesLoadedMethod · 0.80
onUnlockButtonClickedMethod · 0.80

Calls 4

isStudentMethod · 0.95
isPremiumMethod · 0.95
isAnonymousMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected