From 6bd0043248b3c5386677280fb2379fbbfb5f35c5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 18 Sep 2022 00:06:29 +0200 Subject: [PATCH] sneed --- files/routes/static.py | 2 ++ files/templates/admin/admin_home.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/static.py b/files/routes/static.py index fba2d7b09..20469cb5b 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -106,6 +106,8 @@ def daily_chart(v): @app.get("/paypigs") @admin_level_required(3) def patrons(v): + if AEVANN_ID and v.id != AEVANN_ID: abort(404) + users = g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc(), User.id).all() return render_template("patrons.html", v=v, users=users) diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index ff2d0bebe..71216d95f 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -48,7 +48,7 @@
  • Users with Chud Theme
  • Currently Grassed Users
  • {%- endif %} - {% if FEATURES['PROCOINS'] -%} + {% if FEATURES['PROCOINS'] and (not AEVANN_ID or v.id == AEVANN_ID) -%}
  • Patrons / Paypigs
  • {%- endif %}
  • Currently Logged-in Users