From 30d4f5e902ef5ccb77ce1a474e6781f2662d2fb2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 30 Sep 2022 23:07:53 +0200 Subject: [PATCH] allow carp and snakes to see /patrons --- files/routes/static.py | 2 +- files/templates/admin/admin_home.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 65da9f713..b6ad7f052 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -105,7 +105,7 @@ def daily_chart(v): @app.get("/paypigs") @admin_level_required(3) def patrons(v): - if AEVANN_ID and v.id != AEVANN_ID: abort(404) + if AEVANN_ID and v.id not in (AEVANN_ID, CARP_ID, SNAKES_ID): abort(404) users = g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc(), User.id).all() diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index 5b22dc091..0dae73a81 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -49,7 +49,7 @@
  • Users with Chud Theme
  • Currently Grassed Users
  • {%- endif %} - {% if FEATURES['PROCOINS'] and (not AEVANN_ID or v.id == AEVANN_ID) -%} + {% if FEATURES['PROCOINS'] and (not AEVANN_ID or v.id in (AEVANN_ID, CARP_ID, SNAKES_ID)) -%}
  • Patrons
  • {%- endif %}
  • Currently Logged-in Users