This commit is contained in:
Aevann1 2022-01-22 20:34:07 +02:00
parent 6b9596a743
commit cd56751347
17 changed files with 36 additions and 22 deletions

View file

@ -111,6 +111,8 @@ def post_id(pid, anything=None, v=None):
if post.club and not (v and (v.paid_dues or v.id == post.author_id)): abort(403)
if post.private and not (v and (v.admin_level > 1 or v.id == post.author.id)): abort(403)
if v:
votes = g.db.query(CommentVote).filter_by(user_id=v.id).subquery()