FIX: Improve error messages if user cannot send PM emails (#12547)

This commit is contained in:
Bianca Nenciu
2021-03-30 12:18:57 +03:00
committed by GitHub
parent 21b4fef175
commit 52a5c7e438
4 changed files with 14 additions and 2 deletions

View File

@ -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])