From 60817f48345016a222e26b5fdfbe4075c8fe7375 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 5 Aug 2014 09:24:32 -0300 Subject: fixed bug when asking with moderation and groups enabled --- askbot/models/question.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3-1-g7c22