BUGFIX: 500 error on missing category

This commit is contained in:
Sam 2014-05-12 15:50:31 +10:00
parent f8b7f0d73f
commit 97ae43126b
1 changed files with 2 additions and 3 deletions

View File

@ -252,11 +252,10 @@ class ListController < ApplicationController
end
@category = Category.query_category(slug_or_id, parent_category_id)
raise Discourse::NotFound.new if !@category
@description_meta = @category.description
guardian.ensure_can_see!(@category)
raise Discourse::NotFound.new if @category.blank?
end
def build_topic_list_options