User is premium if they have lifetime deal

This commit is contained in:
Son NK 2020-01-01 20:02:48 +01:00
parent 98d2882719
commit dc53d77a71
1 changed files with 3 additions and 0 deletions

View File

@ -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