FIX: Use Discourse.system_user when we need a placeholder admin (#9781)

This commit is contained in:
Kane York
2020-06-23 22:51:30 -07:00
committed by GitHub
parent 713298c622
commit 52278ce6fd
2 changed files with 2 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ class RandomTopicSelector
end
# don't leak private categories into the "everything" group
options[:guardian] = Guardian.new(CategoryFeaturedTopic.fake_admin)
options[:guardian] = Guardian.new(Discourse.system_user)
end
query = TopicQuery.new(nil, options)