mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-25 05:23:36 -04:00
404 if a category does not exist ....
This commit is contained in:
parent
f1a31cd9e6
commit
085e094497
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ class ListController < ApplicationController
|
|||
if request_is_for_uncategorized?
|
||||
list = query.list_uncategorized
|
||||
else
|
||||
if !@category
|
||||
raise Discourse::NotFound
|
||||
return
|
||||
end
|
||||
guardian.ensure_can_see!(@category)
|
||||
list = query.list_category(@category)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue