forked from rDrama/rDrama
allow ppl to see other ppl's submissions in /submit/hats
parent
47cef7f180
commit
729af8eb37
|
@ -260,9 +260,7 @@ def remove_emoji(v, name):
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
@auth_required
|
@auth_required
|
||||||
def submit_hats(v):
|
def submit_hats(v):
|
||||||
if v.admin_level >= PERMS['VIEW_PENDING_SUBMITTED_HATS']: hats = g.db.query(HatDef).filter(HatDef.submitter_id != None)
|
hats = g.db.query(HatDef).filter(HatDef.submitter_id != None).order_by(HatDef.created_utc.desc()).all()
|
||||||
else: hats = g.db.query(HatDef).filter(HatDef.submitter_id == v.id)
|
|
||||||
hats = hats.order_by(HatDef.created_utc.desc()).all()
|
|
||||||
|
|
||||||
return render_template("submit_hats.html", v=v, hats=hats)
|
return render_template("submit_hats.html", v=v, hats=hats)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue