From 05b648a41d6eb5d608058bad74665d6f87310e33 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 25 Oct 2021 23:34:58 +0200 Subject: [PATCH] aa --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index b817b7ea5..095b96cf6 100755 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -110,7 +110,7 @@ def post_id(pid, anything=None, v=None): post = get_post(pid, v=v) - if post.club and not (v and v.paid_dues) or post.private and not (v and v.id == post.author_id): abort(403) + if post.club and not (v and v.paid_dues) or post.private and not (v and (v.id == post.author_id or v.admin_level == 6)): abort(403) if v: votes = g.db.query(CommentVote).options(lazyload('*')).filter_by(user_id=v.id).subquery()