mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 07:43:54 +08:00
User is premium if they have lifetime deal
This commit is contained in:
parent
98d2882719
commit
dc53d77a71
1 changed files with 3 additions and 0 deletions
|
@ -146,6 +146,9 @@ class User(db.Model, ModelMixin, UserMixin):
|
|||
|
||||
def is_premium(self):
|
||||
"""user is premium if they have a active subscription"""
|
||||
if self.lifetime:
|
||||
return True
|
||||
|
||||
sub: Subscription = self.get_subscription()
|
||||
if sub:
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue