FIX: including info on post queue for non staff
This commit is contained in:
parent
da41b11309
commit
e5c5744dd5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue