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")
|
@app.get("/paypigs")
|
||||||
@admin_level_required(3)
|
@admin_level_required(3)
|
||||||
def patrons(v):
|
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()
|
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="/agendaposters">Users with Chud Theme</a></li>
|
||||||
<li><a href="/grassed">Currently Grassed Users</a></li>
|
<li><a href="/grassed">Currently Grassed Users</a></li>
|
||||||
{%- endif %}
|
{%- 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>
|
<li><a href="/patrons">Patrons</a></li>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<li><a href="/admin/loggedin">Currently Logged-in Users</a></li>
|
<li><a href="/admin/loggedin">Currently Logged-in Users</a></li>
|
||||||
|
|
Loading…
Reference in New Issue