mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
Merge pull request #1010 from simple-login/fix-upgrade
do not show upgrade button for lifetime user
This commit is contained in:
commit
a90e880b24
1 changed files with 3 additions and 0 deletions
|
@ -640,6 +640,9 @@ class User(Base, ModelMixin, UserMixin, PasswordOracle):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def should_show_upgrade_button(self):
|
def should_show_upgrade_button(self):
|
||||||
|
if self.lifetime:
|
||||||
|
return False
|
||||||
|
|
||||||
if self.lifetime_or_active_subscription():
|
if self.lifetime_or_active_subscription():
|
||||||
# user who has canceled can also re-subscribe
|
# user who has canceled can also re-subscribe
|
||||||
sub: Subscription = self.get_subscription()
|
sub: Subscription = self.get_subscription()
|
||||||
|
|
Loading…
Reference in a new issue