add ability to use timestamp server

This commit is contained in:
Pete Matsyburka committed 2023-12-02 18:14:33 +02:00
1 parent c5d71505ef
commit ced88476cc
9 files changed
+168 -10

No files matched your search

+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?