From 2508b5fc8a7352012b1781a3bf8221c3c0012b09 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 28 Apr 2024 16:43:28 +0300 Subject: [PATCH] adjust template account clone --- app/views/templates/new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/templates/new.html.erb b/app/views/templates/new.html.erb index 73e1862a..2a665b9e 100644 --- a/app/views/templates/new.html.erb +++ b/app/views/templates/new.html.erb @@ -3,7 +3,7 @@ <% if @base_template %> <%= hidden_field_tag :base_template_id, @base_template.id %> <% end %> - <% if @base_template && (can?(:manage, :tenants) || true_user != current_user) && true_user.account.account_linked_accounts.exists? %> + <% if @base_template && (can?(:manage, :tenants) || true_user != current_user) && true_user.account.linked_accounts.active.exists? %>
<%= select_tag :account_id, options_for_select([true_user.account, *true_user.account.linked_accounts.active].uniq.map { |e| [e.name, e.id] }, current_account.id), required: true, class: 'base-select' %>