FIX: Topic creation validation should be skipped properly

This commit is contained in:
Robin Ward
2015-04-28 11:08:41 -04:00
parent 4eaee8f611
commit fe49141509

View File

@ -78,7 +78,7 @@ class TopicCreator
category = find_category category = find_category
@guardian.ensure_can_create!(Topic, category) @guardian.ensure_can_create!(Topic, category) unless @opts[:skip_validations]
topic_params[:category_id] = category.id if category.present? topic_params[:category_id] = category.id if category.present?