diff --git a/drama/routes/comments.py b/drama/routes/comments.py index 1fa859f4c7..199eb9a73a 100644 --- a/drama/routes/comments.py +++ b/drama/routes/comments.py @@ -25,7 +25,7 @@ beams_client = PushNotifications( @auth_required def banawardcomment(comment_id, v): - if not v.banawards > 0: return render_template("errors/402.html", v=v) + if not v.banawards > 0: return render_template("errors/banaward.html", v=v) comment = g.db.query(Comment).filter_by(id=comment_id).first() if not comment: abort(400) diff --git a/drama/routes/posts.py b/drama/routes/posts.py index cbc3a6fa98..1dc688c85c 100644 --- a/drama/routes/posts.py +++ b/drama/routes/posts.py @@ -49,7 +49,7 @@ def resize(): @auth_required def postbanaward(post_id, v): - if not v.banawards > 0: return render_template("errors/402.html", v=v) + if not v.banawards > 0: return render_template("errors/banaward.html", v=v) post = g.db.query(Submission).filter_by(id=post_id).first() if not post: abort(400) diff --git a/drama/templates/errors/402.html b/drama/templates/errors/patron.html similarity index 91% rename from drama/templates/errors/402.html rename to drama/templates/errors/patron.html index faa434b1af..bdf3238967 100644 --- a/drama/templates/errors/402.html +++ b/drama/templates/errors/patron.html @@ -4,7 +4,7 @@ 403 Unauthorized {% endblock %} -{% block pagetype %}error-405{% endblock %} +{% block pagetype %}error-403{% endblock %} {% block content %}