summaryrefslogtreecommitdiffstats
path: root/askbot/models/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/models/__init__.py')
-rw-r--r--askbot/models/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py
index dd992c99..6919ebeb 100644
--- a/askbot/models/__init__.py
+++ b/askbot/models/__init__.py
@@ -863,6 +863,10 @@ def user_assert_can_edit_comment(self, comment = None):
else:
return
+ if not (self.is_blocked() or self.is_suspended()):
+ if self.reputation >= askbot_settings.MIN_REP_TO_EDIT_OTHERS_POSTS:
+ return
+
error_message = _(
'Sorry, but only post owners or moderators can edit comments'
)