From 06f0798ed7a63df6395e1b8d658ba2e729f6135a Mon Sep 17 00:00:00 2001 From: Deimos Date: Tue, 5 Nov 2019 12:50:51 -0700 Subject: [PATCH] Remove the "slow_reply" permission The custom user rate-limiting is a better method of doing this type of thing. --- tildes/tildes/models/comment/comment.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tildes/tildes/models/comment/comment.py b/tildes/tildes/models/comment/comment.py index c6ed266..4670296 100644 --- a/tildes/tildes/models/comment/comment.py +++ b/tildes/tildes/models/comment/comment.py @@ -189,8 +189,6 @@ class Comment(DatabaseModel): # reply: # - removed comments can't be replied to by anyone # - if the topic is locked, only admins can reply - # - if the user has "comment.reply_slow", they can't reply to comments less - # than 2 hours old # - otherwise, logged-in users can reply if self.is_removed: acl.append((Deny, Everyone, "reply")) @@ -199,9 +197,6 @@ class Comment(DatabaseModel): acl.append((Allow, "admin", "reply")) acl.append((Deny, Everyone, "reply")) - if self.age < timedelta(hours=2): - acl.append((Deny, "comment.reply_slow", "reply")) - acl.append((Allow, Authenticated, "reply")) # edit: