FEATURE: Show FAQ at top of the hamburger until the user reads it

This commit is contained in:
Robin Ward
2015-09-04 16:56:02 -04:00
parent 5881f68556
commit 32e2d7963a
7 changed files with 54 additions and 21 deletions

View File

@ -30,12 +30,17 @@ class CurrentUserSerializer < BasicUserSerializer
:dismissed_banner_key,
:is_anonymous,
:post_queue_new_count,
:show_queued_posts
:show_queued_posts,
:read_faq
def include_site_flagged_posts_count?
object.staff?
end
def read_faq
object.user_stat.read_faq?
end
def topic_count
object.topics.count
end