summaryrefslogtreecommitdiffstats
path: root/askbot/models
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-10 23:53:07 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-10 23:53:07 -0400
commit7377d4b06d4f5c6ce7823ee016e26b4718a8b2a3 (patch)
tree835c688adff72035e022e086dd06729b7c5bf6e8 /askbot/models
parent0dbfd025feeb018c8d82889801c4c195a4be8a92 (diff)
downloadaskbot-7377d4b06d4f5c6ce7823ee016e26b4718a8b2a3.tar.gz
askbot-7377d4b06d4f5c6ce7823ee016e26b4718a8b2a3.tar.bz2
askbot-7377d4b06d4f5c6ce7823ee016e26b4718a8b2a3.zip
removed reputation limit to post comments and allowed users repost own answers and comments
Diffstat (limited to 'askbot/models')
-rw-r--r--askbot/models/__init__.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py
index 49ce7fae..017d4f87 100644
--- a/askbot/models/__init__.py
+++ b/askbot/models/__init__.py
@@ -771,6 +771,9 @@ def user_assert_can_edit_comment(self, comment = None):
def user_can_post_comment(self, parent_post = None):
"""a simplified method to test ability to comment
"""
+ return True
+ """
+ #commented out to disable the min rep
if self.reputation >= askbot_settings.MIN_REP_TO_LEAVE_COMMENTS:
return True
if parent_post and self == parent_post.author:
@@ -778,6 +781,7 @@ def user_can_post_comment(self, parent_post = None):
if self.is_administrator_or_moderator():
return True
return False
+ """
def user_assert_can_post_comment(self, parent_post = None):
@@ -795,7 +799,7 @@ def user_assert_can_post_comment(self, parent_post = None):
'Sorry, to comment any post a minimum reputation of '
'%(min_rep)s points is required. You can still comment '
'your own posts and answers to your questions'
- ) % {'min_rep': askbot_settings.MIN_REP_TO_LEAVE_COMMENTS}
+ ) % {'min_rep': 0}#askbot_settings.MIN_REP_TO_LEAVE_COMMENTS}
blocked_message = get_i18n_message('BLOCKED_USERS_CANNOT_POST')
@@ -806,7 +810,7 @@ def user_assert_can_post_comment(self, parent_post = None):
owner_can = True,
blocked_error_message = blocked_message,
suspended_error_message = suspended_error_message,
- min_rep_setting = askbot_settings.MIN_REP_TO_LEAVE_COMMENTS,
+ min_rep_setting = 0,#askbot_settings.MIN_REP_TO_LEAVE_COMMENTS,
low_rep_error_message = low_rep_error_message,
)
except askbot_exceptions.InsufficientReputation, e: