FIX: Show the "Needs Approval" menu item if items need approval
Previously it would not show up if the feature was disabled. However if posts needed approval the icon would show up and it would be confusing.
This commit is contained in:
parent
d9e2a685b2
commit
e52ed66069
|
@ -124,7 +124,7 @@ class CurrentUserSerializer < BasicUserSerializer
|
|||
end
|
||||
|
||||
def include_show_queued_posts?
|
||||
object.staff? && NewPostManager.queue_enabled?
|
||||
object.staff? && (NewPostManager.queue_enabled? || QueuedPost.new_count > 0)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue