mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Use Discourse.system_user when we need a placeholder admin (#9781)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user