mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FIX: Improve error messages if user cannot send PM emails (#12547)
This commit is contained in:
@ -193,7 +193,7 @@ class TopicCreator
|
||||
end
|
||||
|
||||
if @opts[:target_emails].present? && !@guardian.can_send_private_messages_to_email? then
|
||||
rollback_with!(topic, :reply_by_email_disabled)
|
||||
rollback_with!(topic, :send_to_email_disabled)
|
||||
end
|
||||
|
||||
add_users(topic, @opts[:target_usernames])
|
||||
|
Reference in New Issue
Block a user