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:
Robin Ward 2015-05-28 11:53:59 -04:00
parent d9e2a685b2
commit e52ed66069
1 changed files with 1 additions and 1 deletions

View File

@ -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