mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 15:51:55 +02:00
supporter refactor
This commit is contained in:
parent
e82e1b4631
commit
5235286d8a
6 changed files with 9 additions and 11 deletions
|
@ -830,12 +830,10 @@ class Site < Sequel::Model
|
|||
((total_used_space.to_f / maximum_space) * 100).round(1)
|
||||
end
|
||||
|
||||
# This returns true even if they end their support plan.
|
||||
def supporter?
|
||||
!owner.values[:stripe_customer_id].nil?
|
||||
plan_type != 'free'
|
||||
end
|
||||
|
||||
# This will return false if they have ended their plan.
|
||||
def ended_supporter?
|
||||
owner.values[:plan_ended]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue