mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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
Block a user