mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
fix the build
This commit is contained in:
@ -261,7 +261,7 @@ class TopicCreator
|
||||
|
||||
def check_can_send_permission!(topic, obj)
|
||||
unless @opts[:skip_validations] ||
|
||||
@guardian.can_send_private_message?(obj, notify_moderators: topic&.subtype == TopicSubtype.notify_moderators))
|
||||
@guardian.can_send_private_message?(obj, notify_moderators: topic&.subtype == TopicSubtype.notify_moderators)
|
||||
rollback_with!(topic, :cant_send_pm)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user