mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 19:46:55 +08:00
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
Block a user