diff --git a/files/routes/static.py b/files/routes/static.py index 8732678512..5ae1dba133 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -413,7 +413,7 @@ if not os.path.exists(f'files/templates/donate_{SITE_NAME}.html'): @app.get('/donate') @auth_required def donate(v): - if not v.truecoins: abort(404) + if v.truecoins < 1000: abort(404) return render_template(f'donate_{SITE_NAME}.html', v=v) diff --git a/files/templates/header.html b/files/templates/header.html index 9af6d2bf61..3fc0f6e6c7 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -238,7 +238,7 @@
My profile Settings - {% if FEATURES['PROCOINS'] and v.truecoins %} + {% if FEATURES['PROCOINS'] and v.truecoins >= 1000 %} Donate {% endif %} @@ -298,7 +298,7 @@ Settings - {% if FEATURES['PROCOINS'] and v.truecoins %} + {% if FEATURES['PROCOINS'] and v.truecoins >= 1000 %} Donate {% endif %} diff --git a/files/templates/settings_security.html b/files/templates/settings_security.html index afa6297571..23a7ca3238 100644 --- a/files/templates/settings_security.html +++ b/files/templates/settings_security.html @@ -44,7 +44,7 @@