|
|
|
@ -13,12 +13,12 @@
|
|
|
|
<%= link_to t('account'), settings_account_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
<%= link_to t('account'), settings_account_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% unless Docuseal.multitenant? %>
|
|
|
|
<% unless Docuseal.multitenant? %>
|
|
|
|
<% if can?(:read, EncryptedConfig.new(key: EncryptedConfig::EMAIL_SMTP_KEY, account: current_account)) && ENV['SMTP_ADDRESS'].blank? && true_user == current_user %>
|
|
|
|
<% if can?(:read, EncryptedConfig.new(key: EncryptedConfig::EMAIL_SMTP_KEY, account: current_account)) && ENV['SMTP_ADDRESS'].blank? && true_user == current_user %>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<%= link_to t('email'), settings_email_index_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
<%= link_to t('email'), settings_email_index_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if can?(:read, EncryptedConfig.new(key: EncryptedConfig::FILES_STORAGE_KEY, account: current_account)) && true_user == current_user %>
|
|
|
|
<% if can?(:read, EncryptedConfig.new(key: EncryptedConfig::FILES_STORAGE_KEY, account: current_account)) && true_user == current_user && ENV['S3_ATTACHMENTS_BUCKET'].blank? && ENV['GCS_BUCKET'].blank? && ENV['AZURE_CONTAINER'].blank? %>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<%= link_to t('storage'), settings_storage_index_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
<%= link_to t('storage'), settings_storage_index_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|