FIX: Topic creation validation should be skipped properly
This commit is contained in:
parent
4eaee8f611
commit
fe49141509
|
@ -78,7 +78,7 @@ class TopicCreator
|
|||
|
||||
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?
|
||||
|
||||
|
|
Loading…
Reference in New Issue