mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: including info on post queue for non staff
This commit is contained in:
parent
da41b11309
commit
e5c5744dd5
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue