From f50d4478810a0d5616ba06448dcae51aaeccb192 Mon Sep 17 00:00:00 2001 From: Arpit Jalan <arpit@techapj.com> Date: Wed, 18 Oct 2017 14:13:47 +0530 Subject: [PATCH] FIX: render secure category topics in RSS if the user can view the topics --- app/controllers/list_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 02b3cdd3e56..dd41d020e51 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -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