forked from rDrama/rDrama
fdfd
parent
8e10a271ae
commit
01a613840e
|
@ -21,7 +21,7 @@ from .front import frontlist
|
||||||
|
|
||||||
@app.get("/admin/patrons")
|
@app.get("/admin/patrons")
|
||||||
@auth_required
|
@auth_required
|
||||||
def shadowbanned(v):
|
def patrons(v):
|
||||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||||
if not (v and v.admin_level == 6): abort(404)
|
if not (v and v.admin_level == 6): abort(404)
|
||||||
users = [x for x in g.db.query(User).filter_by(patron = True).all()]
|
users = [x for x in g.db.query(User).filter_by(patron = True).all()]
|
||||||
|
|
Loading…
Reference in New Issue