Hide vote details from non-admins.

It is intentional that the links show up on admin level 2 but aren't usable until admin level 3; I don't know what I want right now and I want to encourage admins to pester me about it.
This commit is contained in:
Ben Rog-Wilhelm 2022-07-23 03:03:26 -05:00
parent db185a9ef2
commit 19e9c1a20e
6 changed files with 23 additions and 19 deletions

View file

@ -8,7 +8,7 @@ from os import environ
@app.get("/votes")
@limiter.limit("5/second;60/minute;200/hour;1000/day")
@auth_required
@admin_level_required(3)
def admin_vote_info_get(v):
link = request.values.get("link")
if not link: return render_template("votes.html", v=v)