diff --git a/files/routes/static.py b/files/routes/static.py index 217b86c7a..6e3e6f0dc 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -387,7 +387,7 @@ def robots_txt(): return f @app.get("/badges") -@auth_required +@admin_level_required(2) @cache.memoize(timeout=3600, make_name=make_name) def badges(v): badges = g.db.query(BadgeDef).order_by(BadgeDef.id).all() diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 1ada54b9a..25354d61d 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -209,7 +209,7 @@ -
Share this link with a friend. {% if v.referral_count==0 %} When they sign up, you'll get the bronze recruitment badge. Learn more.{% elif v.referral_count<10 %} When you refer 10 friends, you'll receive the silver recruitment badge. Learn more.{% elif v.referral_count<100 %} When you refer 100 friends, you'll receive the gold recruitment badge. Learn more.{% endif %}
+
Share this link with a friend. {% if v.referral_count==0 %} When they sign up, you'll get the bronze recruitment badge.{% elif v.referral_count<10 %} When you refer 10 friends, you'll receive the silver recruitment badge.{% elif v.referral_count<100 %} When you refer 100 friends, you'll receive the gold recruitment badge.{% endif %}