summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2014-08-05 09:24:32 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2014-08-05 09:24:32 -0300
commit60817f48345016a222e26b5fdfbe4075c8fe7375 (patch)
tree21c59fe52100e9d488d34b1b6de302208ba35194
parent9c5257d3c38c0d509349f3fad447f3afb3afdc9e (diff)
downloadaskbot-60817f48345016a222e26b5fdfbe4075c8fe7375.tar.gz
askbot-60817f48345016a222e26b5fdfbe4075c8fe7375.tar.bz2
askbot-60817f48345016a222e26b5fdfbe4075c8fe7375.zip
fixed bug when asking with moderation and groups enabled
-rw-r--r--askbot/models/question.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/models/question.py b/askbot/models/question.py
index 685c3c9e..2ce7d124 100644
--- a/askbot/models/question.py
+++ b/askbot/models/question.py
@@ -1252,7 +1252,7 @@ class Thread(models.Model):
#put published answers first
#todo: there may be > 1 enquirers
published_answer_ids = list()
- if self.is_moderated() and user != question_post.author:
+ if question_post and question_post.is_approved() == False and user != question_post.author:
#if moderated - then author is guaranteed to be the
#limited visibility enquirer
published_answer_ids = self.posts.get_answers(