From a7d419eec363b174e03f566804441c1b8bbabc9c Mon Sep 17 00:00:00 2001 From: Son Date: Fri, 20 May 2022 11:00:11 +0200 Subject: [PATCH] do not show upgrade button for lifetime user --- app/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models.py b/app/models.py index e57a8d08..9b89b9ca 100644 --- a/app/models.py +++ b/app/models.py @@ -640,6 +640,9 @@ class User(Base, ModelMixin, UserMixin, PasswordOracle): return False def should_show_upgrade_button(self): + if self.lifetime: + return False + if self.lifetime_or_active_subscription(): # user who has canceled can also re-subscribe sub: Subscription = self.get_subscription()