This commit is contained in:
Aevann1 2022-01-28 08:34:09 +02:00
parent 2d44092a85
commit 2a81b8e071
3 changed files with 28 additions and 25 deletions

View file

@ -48,6 +48,8 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
if comment.post and comment.post.club and not (v and (v.paid_dues or v.id in [comment.author_id, comment.post.author_id])): abort(403)
if comment.post and comment.post.private and not (v and (v.admin_level > 1 or v.id == comment.post.author.id)): abort(403)
if not comment.parent_submission and not (v and (comment.author.id == v.id or comment.sentto == v.id)) and not (v and v.admin_level > 1) : abort(403)
if not pid: