forked from MarseyWorld/MarseyWorld
allow carp and snakes to see /patrons
parent
4a3670cdc9
commit
30d4f5e902
|
@ -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()
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<li><a href="/agendaposters">Users with Chud Theme</a></li>
|
||||
<li><a href="/grassed">Currently Grassed Users</a></li>
|
||||
{%- 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)) -%}
|
||||
<li><a href="/patrons">Patrons</a></li>
|
||||
{%- endif %}
|
||||
<li><a href="/admin/loggedin">Currently Logged-in Users</a></li>
|
||||
|
|
Loading…
Reference in New Issue