mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:01:13 +08:00
FIX: handle private category permission error
This commit is contained in:
@ -235,7 +235,7 @@ class ListController < ApplicationController
|
|||||||
redirect_or_not_found and return if !@category
|
redirect_or_not_found and return if !@category
|
||||||
|
|
||||||
@description_meta = @category.description_text
|
@description_meta = @category.description_text
|
||||||
guardian.ensure_can_see!(@category)
|
raise Discourse::NotFound unless guardian.can_see?(@category)
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_topic_list_options
|
def build_topic_list_options
|
||||||
|
Reference in New Issue
Block a user