'Return whether forum posts are allowed by the discussion_blackouts
setting'

@property
def forum_posts_allowed(self):

    blackouts = self.get_discussion_blackout_datetimes()
    now = datetime.now(utc)
    for blackout in blackouts:
        if (blackout['start'] <= now <= blackout['end']):
            return False
    return True
