forked from rDrama/rDrama
master
parent
1aad78396d
commit
e3d4dd7e5b
|
@ -25,7 +25,7 @@ beams_client = PushNotifications(
|
||||||
@auth_required
|
@auth_required
|
||||||
def banawardcomment(comment_id, v):
|
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()
|
comment = g.db.query(Comment).filter_by(id=comment_id).first()
|
||||||
if not comment: abort(400)
|
if not comment: abort(400)
|
||||||
|
|
|
@ -49,7 +49,7 @@ def resize():
|
||||||
@auth_required
|
@auth_required
|
||||||
def postbanaward(post_id, v):
|
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()
|
post = g.db.query(Submission).filter_by(id=post_id).first()
|
||||||
if not post: abort(400)
|
if not post: abort(400)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>403 Unauthorized</title>
|
<title>403 Unauthorized</title>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block pagetype %}error-405{% endblock %}
|
{% block pagetype %}error-403{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
Loading…
Reference in New Issue