From eb6bfdd56f5f93b3368651970bb15a629781f634 Mon Sep 17 00:00:00 2001
From: Son NK <>
Date: Wed, 27 May 2020 00:20:09 +0200
Subject: [PATCH] only show upgrade button to "free" lifetime user
---
app/dashboard/templates/dashboard/setting.html | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/app/dashboard/templates/dashboard/setting.html b/app/dashboard/templates/dashboard/setting.html
index b72915df..587fed83 100644
--- a/app/dashboard/templates/dashboard/setting.html
+++ b/app/dashboard/templates/dashboard/setting.html
@@ -192,9 +192,11 @@
{% endif %}
{% elif current_user.lifetime %}
You have the lifetime licence.
-
- To support SimpleLogin it's possible to change to a paid plan.
- Upgrade
+ {% if not current_user.paid_lifetime %}
+
+ To support SimpleLogin it's possible to change to a paid plan.
+ Upgrade
+ {% endif %}
{% elif current_user.in_trial() %}
You are in the trial period. The trial ends {{ current_user.trial_end | dt }}.
{% else %}