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

Method isPremium

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

Source from the content-addressed store, hash-verified

576 }
577
578 isPremium () {
579 if (this.isInGodMode()) { return true }
580 if (this.isAdmin()) { return true }
581 if (this.hasSubscription()) { return true }
582 return false
583 }
584
585 isForeverPremium () {
586 return this.get('stripe')?.free === true

Callers 15

premiumEndDateMethod · 0.95
freeOnlyMethod · 0.95
isPaidTeacherFunction · 0.80
openSubscribeModalMethod · 0.80
onClickCreateClanMethod · 0.80
onJoinClanMethod · 0.80
updateMethod · 0.80
constructorMethod · 0.80
onLoadedMethod · 0.80

Calls 3

isInGodModeMethod · 0.95
isAdminMethod · 0.95
hasSubscriptionMethod · 0.95

Tested by

no test coverage detected