mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
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)
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user