forked from MarseyWorld/MarseyWorld
WPD: permit /views to non-patrons.
parent
c619204ec0
commit
c881e284b0
|
@ -887,7 +887,8 @@ def following(username, v):
|
||||||
@app.get("/views")
|
@app.get("/views")
|
||||||
@auth_required
|
@auth_required
|
||||||
def visitors(v):
|
def visitors(v):
|
||||||
if v.admin_level < 2 and not v.patron: return render_template("errors/patron.html", v=v)
|
if v.admin_level < 2 and (not v.patron and SITE_NAME != 'WPD'):
|
||||||
|
return render_template("errors/patron.html", v=v)
|
||||||
viewers=sorted(v.viewers, key = lambda x: x.last_view_utc, reverse=True)
|
viewers=sorted(v.viewers, key = lambda x: x.last_view_utc, reverse=True)
|
||||||
return render_template("viewers.html", v=v, viewers=viewers)
|
return render_template("viewers.html", v=v, viewers=viewers)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue