From b23f48d534a1d830974db975c87c18ffc17209bc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 11 Jan 2022 19:42:56 +0200 Subject: [PATCH] bb --- files/routes/comments.py | 2 +- files/templates/notifications.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index b808a83cf..84032235f 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -51,7 +51,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None): if comment.post and comment.post.club and not (v and (v.paid_dues or v.id in [comment.author_id, comment.post.author_id])): abort(403) - if not comment.parent_submission and not (v and (comment.author.id == v.id or comment.sentto == v.id)): abort(403) + if not comment.parent_submission and not (v and (comment.author.id == v.id or comment.sentto == v.id)) and not (v and v.admin_level > 1) : abort(403) if not pid: if comment.parent_submission: pid = comment.parent_submission diff --git a/files/templates/notifications.html b/files/templates/notifications.html index fd91cd4f3..7df8a67b8 100644 --- a/files/templates/notifications.html +++ b/files/templates/notifications.html @@ -7,7 +7,7 @@ {% block PseudoSubmitForm %}{% endblock %} {% block navbar %} -
+
{% endblock %} {% block content %}