updates for paypal support

This commit is contained in:
Kyle Drake 2016-01-22 20:38:42 +00:00
parent be9fe7ca12
commit b967093ba7
7 changed files with 37 additions and 22 deletions

View file

@ -1061,6 +1061,7 @@ class Site < Sequel::Model
# Note: Change Stat#prune! if you change this business logic.
def plan_type
return 'supporter' if owner.values[:paypal_active] == true
return 'free' if owner.values[:plan_type].nil?
return 'supporter' if owner.values[:plan_type].match /^plan_/
return 'supporter' if owner.values[:plan_type] == 'special'