FIX: render secure category topics in RSS if the user can view the topics

This commit is contained in:
Arpit Jalan 2017-10-18 14:13:47 +05:30
parent 7f9b0f5e60
commit f50d447881
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class ListController < ApplicationController
@link = "#{Discourse.base_url}#{@category.url}"
@atom_link = "#{Discourse.base_url}#{@category.url}.rss"
@description = "#{I18n.t('topics_in_category', category: @category.name)} #{@category.description}"
@topic_list = TopicQuery.new.list_new_in_category(@category)
@topic_list = TopicQuery.new(current_user).list_new_in_category(@category)
render 'list', formats: [:rss]
end