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