mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: handle private category permission error
This commit is contained in:
parent
d993f70ed3
commit
a682ec9444
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user