Fix inconsistent ui issues on discussion during blackout period

FOR-108
We should set forum_posts_allowed even if no user is provided

`obj['forum_posts_allowed'] = has_permission(user, 'create_comment', course.id) if user else False`