From 0cca43fc503687a9329767ee4277ad064f7293a2 Mon Sep 17 00:00:00 2001 From: Deimos Date: Tue, 28 Jan 2020 15:07:39 -0700 Subject: [PATCH] Allow admins to reply to removed comments --- tildes/tildes/models/comment/comment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tildes/tildes/models/comment/comment.py b/tildes/tildes/models/comment/comment.py index ab09afb..664a404 100644 --- a/tildes/tildes/models/comment/comment.py +++ b/tildes/tildes/models/comment/comment.py @@ -195,10 +195,11 @@ class Comment(DatabaseModel): acl.append((Allow, "comment.label", "label")) # reply: - # - removed comments can't be replied to by anyone + # - removed comments can only be replied to by admins # - if the topic is locked, only admins can reply # - otherwise, logged-in users can reply if self.is_removed: + acl.append((Allow, "admin", "reply")) acl.append((Deny, Everyone, "reply")) if self.topic.is_locked: