From c881e284b0bb384fcea79f1f03a7634871608b00 Mon Sep 17 00:00:00 2001 From: TLSM Date: Sun, 14 Aug 2022 17:01:04 -0400 Subject: [PATCH] WPD: permit /views to non-patrons. --- files/routes/users.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index 63edd388e..0f712ccff 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -887,7 +887,8 @@ def following(username, v): @app.get("/views") @auth_required 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) return render_template("viewers.html", v=v, viewers=viewers)