This commit is contained in:
Aevann1 2021-12-19 05:01:21 +02:00
parent 568fdea47a
commit 76299fddb3
23 changed files with 50 additions and 51 deletions

View file

@ -112,7 +112,7 @@ def post_id(pid, anything=None, v=None):
post = get_post(pid, v=v)
if not (v and v.admin_level > 1) and (post.club and not (v and (v.paid_dues or v.id == post.author_id)) 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 v.id == post.author_id)): abort(403)
if v:
votes = g.db.query(CommentVote).filter_by(user_id=v.id).subquery()