mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05: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…
Reference in a new issue