From dc53d77a71a05dcf1b0b5e84142228e89699bf56 Mon Sep 17 00:00:00 2001 From: Son NK Date: Wed, 1 Jan 2020 20:02:48 +0100 Subject: [PATCH] User is premium if they have lifetime deal --- app/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models.py b/app/models.py index 427d45a9..5557eee6 100644 --- a/app/models.py +++ b/app/models.py @@ -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