mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Show empty categories with descriptions to everyone
This commit is contained in:
@@ -115,7 +115,7 @@ class CategoryList
|
||||
def prune_empty
|
||||
unless @guardian.can_create?(Category)
|
||||
# Remove categories with no featured topics unless we have the ability to edit one
|
||||
@categories.delete_if { |c| c.displayable_topics.blank? }
|
||||
@categories.delete_if { |c| c.displayable_topics.blank? && c.description.nil? }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user