summaryrefslogtreecommitdiffstats
path: root/askbot/auth.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-08-04 21:08:10 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-08-04 21:08:10 -0400
commitd99947cc63fdd650434e5dbfe0462cd8a2a28233 (patch)
tree823f3e51bd3efbd5649c3630a0d2e1af543747ee /askbot/auth.py
parentcedfb1fdd686441dbb0ae41bfbe96fb3a275c4a5 (diff)
downloadaskbot-d99947cc63fdd650434e5dbfe0462cd8a2a28233.tar.gz
askbot-d99947cc63fdd650434e5dbfe0462cd8a2a28233.tar.bz2
askbot-d99947cc63fdd650434e5dbfe0462cd8a2a28233.zip
moderation rules apply to closing questions
Diffstat (limited to 'askbot/auth.py')
-rw-r--r--askbot/auth.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/askbot/auth.py b/askbot/auth.py
index 1ab24f52..fb1832ce 100644
--- a/askbot/auth.py
+++ b/askbot/auth.py
@@ -45,12 +45,6 @@ def can_edit_post(user, post):
return True
return False
-def can_view_offensive_flags(user):
- """Determines if a User can view offensive flag counts."""
- return user.is_authenticated() and (
- user.reputation >= askbot_settings.MIN_REP_TO_VIEW_OFFENSIVE_FLAGS or
- user.is_superuser or user.is_moderator())
-
def can_close_question(user, question):
"""Determines if a User can close the given Question."""
return user.is_authenticated() and (