add ability to use timestamp server
This commit is contained in:
@@ -71,6 +71,14 @@ module Accounts
|
||||
end
|
||||
end
|
||||
|
||||
def load_timeserver_url(account)
|
||||
if Docuseal.multitenant?
|
||||
Docuseal::TIMESERVER_URL
|
||||
else
|
||||
EncryptedConfig.find_by(account:, key: EncryptedConfig::TIMESTAMP_SERVER_URL_KEY)&.value
|
||||
end.presence
|
||||
end
|
||||
|
||||
def can_send_emails?(_account)
|
||||
return true if Docuseal.multitenant?
|
||||
return true if ENV['SMTP_ADDRESS'].present?
|
||||
|
||||
Reference in New Issue
Block a user