mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
Merge branch 'master' into vdom
This commit is contained in:
commit
8493057942
1 changed files with 2 additions and 3 deletions
|
@ -146,9 +146,8 @@ class CategoryList
|
||||||
|
|
||||||
|
|
||||||
def prune_empty
|
def prune_empty
|
||||||
if @guardian.can_create?(Category) && !SiteSetting.allow_uncategorized_topics
|
unless SiteSetting.allow_uncategorized_topics
|
||||||
# HACK: Don't show uncategorized to admins either, if uncategorized topics are not allowed
|
# HACK: Don't show uncategorized to anyone if not allowed
|
||||||
# and there are none.
|
|
||||||
@categories.delete_if do |c|
|
@categories.delete_if do |c|
|
||||||
c.uncategorized? && c.displayable_topics.blank?
|
c.uncategorized? && c.displayable_topics.blank?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue