mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 12:44:50 +08:00
404 if a category does not exist ....
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user