From a682ec94448048c29296427284073f16836699a0 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 13 Nov 2015 23:13:30 +0530 Subject: [PATCH] FIX: handle private category permission error --- 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 f3f1eadc5..f700c81d8 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -235,7 +235,7 @@ class ListController < ApplicationController redirect_or_not_found and return if !@category @description_meta = @category.description_text - guardian.ensure_can_see!(@category) + raise Discourse::NotFound unless guardian.can_see?(@category) end def build_topic_list_options