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

Method isPaidOnlineClassUser

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

Source from the content-addressed store, hash-verified

544 }
545
546 isPaidOnlineClassUser () {
547 const products = this.get('products')
548 if (products) {
549 const onlineClassProducts = this.activeProducts('online-classes')
550 if (onlineClassProducts.length > 0) { return true }
551 }
552 return false
553 }
554
555 premiumEndDate () {
556 if (!this.isPremium()) { return null }

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
activeProductsMethod · 0.95

Tested by

no test coverage detected