add ability to use timestamp server

This commit is contained in:
Pete Matsyburka
2023-12-02 18:14:33 +02:00
parent c5d71505ef
commit ced88476cc
9 changed files with 168 additions and 10 deletions
+8
View File
@@ -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?