allow to delegate

This commit is contained in:
Pete Matsyburka
2026-03-27 12:56:52 +02:00
parent c23eca0ade
commit 3eb0b8a89f
23 changed files with 454 additions and 85 deletions
+1
View File
@@ -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)