404 if a category does not exist ....
This commit is contained in:
parent
f1a31cd9e6
commit
085e094497
|
@ -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…
Reference in New Issue