mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 10:06:00 +02:00
updates for paypal support
This commit is contained in:
parent
be9fe7ca12
commit
b967093ba7
7 changed files with 37 additions and 22 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue