diff --git a/files/routes/awards.py b/files/routes/awards.py index 697fc3268d..7464633f47 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -190,7 +190,7 @@ def buy(v, award): @app.get("/post//awards") @app.post("/post//awards") @limiter.limit("1/second;30/minute;200/hour;1000/day") -@auth_required +@is_not_permabanned def award_post(pid, v): if v.shadowbanned: return render_template('errors/500.html', err=True, v=v), 500 @@ -428,7 +428,7 @@ def award_post(pid, v): @app.get("/comment//awards") @app.post("/comment//awards") @limiter.limit("1/second;30/minute;200/hour;1000/day") -@auth_required +@is_not_permabanned def award_comment(cid, v): if v.shadowbanned: return render_template('errors/500.html', err=True, v=v), 500