mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: Topic creation validation should be skipped properly
This commit is contained in:
@ -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?
|
||||
|
||||
|
Reference in New Issue
Block a user