FIX: including info on post queue for non staff

This commit is contained in:
Sam 2015-09-28 16:39:34 +10:00
parent da41b11309
commit e5c5744dd5
1 changed files with 2 additions and 2 deletions

View File

@ -215,8 +215,8 @@ class TopicViewSerializer < ApplicationSerializer
object.topic_user.try(:bookmarked) object.topic_user.try(:bookmarked)
end end
def include_pending_posts_count def include_pending_posts_count?
scope.user.staff? && NewPostManager.queue_enabled? scope.is_staff? && NewPostManager.queue_enabled?
end end
end end