aa
This commit is contained in:
parent
3514f4761a
commit
8e3e7e1d3d
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue