mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: min_trust_to_create_topic affects private messages
This commit is contained in:
@@ -95,7 +95,7 @@ class TopicCreator
|
||||
|
||||
category = find_category
|
||||
|
||||
@guardian.ensure_can_create!(Topic, category) unless @opts[:skip_validations]
|
||||
@guardian.ensure_can_create!(Topic, category) unless (@opts[:skip_validations] || @opts[:archetype] == Archetype.private_message)
|
||||
|
||||
topic_params[:category_id] = category.id if category.present?
|
||||
|
||||
|
Reference in New Issue
Block a user