From ea227e82c955be6d8057b8be99b15be1a8227e3e Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 29 Jul 2025 22:49:20 +0300 Subject: [PATCH] force smtp auto --- app/views/email_smtp_settings/index.html.erb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/views/email_smtp_settings/index.html.erb b/app/views/email_smtp_settings/index.html.erb index ad047b2b..76733144 100644 --- a/app/views/email_smtp_settings/index.html.erb +++ b/app/views/email_smtp_settings/index.html.erb @@ -35,17 +35,19 @@ <%= ff.select :authentication, options_for_select([%w[Plain plain], %w[Login login], %w[CRAM-MD5 cram_md5]], value.fetch('authentication', 'plain')), { prompt: true }, required: true, class: 'base-select' %> -
- <%= ff.label :security_label, 'SMTP Security', class: 'label' %> -
- <% [%w[Auto none], %w[SSL ssl], %w[TLS tls], %w[Noverify noverify]].each do |(label, val)| %> - <%= ff.label :security, value: val, for: "#{val}_radio", class: 'label' do %> - <%= ff.radio_button :security, val, checked: (value['security'].blank? && val == 'none') || value['security'] == val, id: "#{val}_radio", class: 'base-radio mr-2' %> - <%= label %> + <% if !Docuseal.multitenant? || can?(:manage, :personalization_advanced) %> +
+ <%= ff.label :security_label, 'SMTP Security', class: 'label' %> +
+ <% [%w[Auto none], %w[SSL ssl], %w[TLS tls], %w[Noverify noverify]].each do |(label, val)| %> + <%= ff.label :security, value: val, for: "#{val}_radio", class: 'label' do %> + <%= ff.radio_button :security, val, checked: (value['security'].blank? && val == 'none') || value['security'] == val, id: "#{val}_radio", class: 'base-radio mr-2' %> + <%= label %> + <% end %> <% end %> - <% end %> +
-
+ <% end %>
<%= ff.label :from_email, t('send_from_email'), class: 'label' %> <%= ff.email_field :from_email, value: value['from_email'], required: !Docuseal.multitenant?, class: 'base-input' %>