This commit is contained in:
Aevann1 2021-09-13 23:43:34 +02:00
parent 1994df1bc7
commit 4367daf813
5 changed files with 49 additions and 31 deletions

View file

@ -96,12 +96,7 @@ def post_id(pid, anything=None, v=None):
post = get_post(pid, v=v)
if post.club:
if not v:
abort(403)
elif v.admin_level < 3 and (not v.paid_dues or v.club_banned):
abort(403)
if post.club and not (v and v.paid_dues): abort(403)
if v:
votes = g.db.query(CommentVote).filter_by(user_id=v.id).subquery()