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