From 50987ce38b5ee6b2d97e4021fd563f07cb040472 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 27 Aug 2024 21:29:11 +0300 Subject: [PATCH] hide app url input --- app/views/accounts/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/accounts/show.html.erb b/app/views/accounts/show.html.erb index d4485949..9d8ac609 100644 --- a/app/views/accounts/show.html.erb +++ b/app/views/accounts/show.html.erb @@ -22,7 +22,7 @@ <% end %> <% encrypted_config = @encrypted_config || EncryptedConfig.find_or_initialize_by(account: current_account, key: EncryptedConfig::APP_URL_KEY) %> - <% if !Docuseal.multitenant? && can?(:manage, encrypted_config) && !current_account.testing? %> + <% if !Docuseal.multitenant? && can?(:manage, encrypted_config) && !current_account.testing? && ENV['APP_URL'].blank? %> <%= fields_for encrypted_config do |ff| %>
<%= ff.label :value, 'App URL', class: 'label' %>