Browse Source

Fix comment labeling permission check

merge-requests/110/head
Deimos 5 years ago
parent
commit
3f6bd60281
  1. 2
      tildes/tildes/models/comment/comment.py

2
tildes/tildes/models/comment/comment.py

@ -209,7 +209,7 @@ class Comment(DatabaseModel):
acl.append((Deny, Everyone, "label"))
acl.append((Deny, self.user_id, "label"))
acl.append((Allow, "comment.label", "label"))
acl.extend(aces_for_permission("comment.label", self.topic.group_id))
# reply:
# - removed comments can only be replied to by users who can remove

Loading…
Cancel
Save