From e5c5744dd591d21a2513effbb11957c479e4a6ce Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 28 Sep 2015 16:39:34 +1000 Subject: [PATCH] FIX: including info on post queue for non staff --- app/serializers/topic_view_serializer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/serializers/topic_view_serializer.rb b/app/serializers/topic_view_serializer.rb index 9cda8e1c0..821ae8329 100644 --- a/app/serializers/topic_view_serializer.rb +++ b/app/serializers/topic_view_serializer.rb @@ -215,8 +215,8 @@ class TopicViewSerializer < ApplicationSerializer object.topic_user.try(:bookmarked) end - def include_pending_posts_count - scope.user.staff? && NewPostManager.queue_enabled? + def include_pending_posts_count? + scope.is_staff? && NewPostManager.queue_enabled? end end