diff options
-rw-r--r-- | askbot/models/post.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/askbot/models/post.py b/askbot/models/post.py index e6e7ec9d..38c0e136 100644 --- a/askbot/models/post.py +++ b/askbot/models/post.py @@ -1234,6 +1234,9 @@ class Post(models.Model): def _question__assert_is_visible_to(self, user): """raises QuestionHidden""" + if askbot_settings.ENABLE_CONTENT_MODERATION: + if self.approved == False: + raise exceptions.QuestionHidden() if self.deleted: message = _( 'Sorry, this question has been ' |