Show empty categories with descriptions to everyone

This commit is contained in:
Neil Lalonde
2013-08-22 11:55:20 -04:00
parent ae93fcebde
commit 24617dd776
2 changed files with 8 additions and 2 deletions

View File

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