summaryrefslogtreecommitdiffstats
path: root/askbot/auth.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-08-07 22:26:22 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-08-07 22:26:22 -0400
commit774ef8a673e7135ca0cd7f4f7c1099971aaa07ba (patch)
treea550b17303acce7fe1893b29780ad7d34aac36b2 /askbot/auth.py
parent72da3d527c454bd3e3fee4a94370c6b78289f938 (diff)
downloadaskbot-774ef8a673e7135ca0cd7f4f7c1099971aaa07ba.tar.gz
askbot-774ef8a673e7135ca0cd7f4f7c1099971aaa07ba.tar.bz2
askbot-774ef8a673e7135ca0cd7f4f7c1099971aaa07ba.zip
put reopening questions under moderation rules
Diffstat (limited to 'askbot/auth.py')
-rw-r--r--askbot/auth.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/askbot/auth.py b/askbot/auth.py
index 3e24d113..33caed13 100644
--- a/askbot/auth.py
+++ b/askbot/auth.py
@@ -71,15 +71,6 @@ def can_accept_answer(user, question, answer):
return True
return False
-# now only support to reopen own question except superuser
-def can_reopen_question(user, question):
- if user.is_superuser:
- return True
- if user.is_authenticated() and user.id == question.author_id:
- if user.reputation >= askbot_settings.MIN_REP_TO_REOPEN_OWN_QUESTIONS:
- return True
- return False
-
def can_view_deleted_post(user, post):
return user.is_superuser