From 3f6bd60281b6fd45788457d684325aee9306dab3 Mon Sep 17 00:00:00 2001 From: Deimos Date: Mon, 2 Mar 2020 15:40:55 -0700 Subject: [PATCH] Fix comment labeling permission check --- tildes/tildes/models/comment/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tildes/tildes/models/comment/comment.py b/tildes/tildes/models/comment/comment.py index 6ae24b9..bfb896d 100644 --- a/tildes/tildes/models/comment/comment.py +++ b/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