mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Use old China server behavior for users who have paid in the past but aren't currently subscribed
This commit is contained in:
parent
ea7b94bba1
commit
6b75fb0a76
2 changed files with 4 additions and 4 deletions
|
@ -228,11 +228,11 @@ module.exports = class User extends CocoModel
|
||||||
|
|
||||||
isOnPremiumServer: ->
|
isOnPremiumServer: ->
|
||||||
return true if me.get('country') in ['brazil']
|
return true if me.get('country') in ['brazil']
|
||||||
return true if me.get('country') in ['china'] and me.isPremium()
|
return true if me.get('country') in ['china'] and (me.isPremium() or me.get('stripe'))
|
||||||
return false
|
return false
|
||||||
|
|
||||||
isOnFreeOnlyServer: ->
|
isOnFreeOnlyServer: ->
|
||||||
return true if me.get('country') in ['china'] and not me.isPremium()
|
return true if me.get('country') in ['china'] and not (me.isPremium() or me.get('stripe'))
|
||||||
return false
|
return false
|
||||||
|
|
||||||
sendVerificationCode: (code) ->
|
sendVerificationCode: (code) ->
|
||||||
|
|
|
@ -329,11 +329,11 @@ UserSchema.methods.isPremium = ->
|
||||||
|
|
||||||
UserSchema.methods.isOnPremiumServer = ->
|
UserSchema.methods.isOnPremiumServer = ->
|
||||||
return true if @get('country') in ['brazil']
|
return true if @get('country') in ['brazil']
|
||||||
return true if @get('country') in ['china'] and @isPremium()
|
return true if @get('country') in ['china'] and (@isPremium() or @get('stripe'))
|
||||||
return false
|
return false
|
||||||
|
|
||||||
UserSchema.methods.isOnFreeOnlyServer = ->
|
UserSchema.methods.isOnFreeOnlyServer = ->
|
||||||
return true if @get('country') in ['china'] and not @isPremium()
|
return true if @get('country') in ['china'] and not (@isPremium() or @get('stripe'))
|
||||||
return false
|
return false
|
||||||
|
|
||||||
UserSchema.methods.level = ->
|
UserSchema.methods.level = ->
|
||||||
|
|
Loading…
Reference in a new issue