remotes/1693045480750635534/spooky-22
Aevann1 2022-09-18 00:06:29 +02:00
parent d1e391683b
commit 6bd0043248
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -48,7 +48,7 @@
<li><a href="/agendaposters">Users with Chud Theme</a></li>
<li><a href="/grassed">Currently Grassed Users</a></li>
{%- endif %}
{% if FEATURES['PROCOINS'] -%}
{% if FEATURES['PROCOINS'] and (not AEVANN_ID or v.id == AEVANN_ID) -%}
<li><a href="/patrons">Patrons / Paypigs</a></li>
{%- endif %}
<li><a href="/admin/loggedin">Currently Logged-in Users</a></li>