allow to delegate
This commit is contained in:
@@ -175,6 +175,7 @@ module Accounts
|
||||
|
||||
def can_send_emails?(_account, **_params)
|
||||
return true if Docuseal.multitenant?
|
||||
return true if Rails.env.development?
|
||||
return true if ENV['SMTP_ADDRESS'].present?
|
||||
|
||||
EncryptedConfig.exists?(key: EncryptedConfig::EMAIL_SMTP_KEY)
|
||||
|
||||
Reference in New Issue
Block a user