vcxxv
This commit is contained in:
parent
6b9596a743
commit
cd56751347
17 changed files with 36 additions and 22 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue