mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: handle private category permission error
This commit is contained in:
parent
d993f70ed3
commit
a682ec9444
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue