User who has valid manual sub is premium
This commit is contained in:
parent
b2eb084720
commit
fb62322794
|
@ -194,6 +194,10 @@ class User(db.Model, ModelMixin, UserMixin):
|
||||||
if sub:
|
if sub:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
manual_sub: ManualSubscription = ManualSubscription.get_by(user_id=self.id)
|
||||||
|
if manual_sub and manual_sub.end_at > arrow.now():
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def in_trial(self):
|
def in_trial(self):
|
||||||
|
|
Loading…
Reference in a new issue