mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user