diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-08-07 22:26:22 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-08-07 22:26:22 -0400 |
commit | 774ef8a673e7135ca0cd7f4f7c1099971aaa07ba (patch) | |
tree | a550b17303acce7fe1893b29780ad7d34aac36b2 /askbot/auth.py | |
parent | 72da3d527c454bd3e3fee4a94370c6b78289f938 (diff) | |
download | askbot-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.py | 9 |
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 |