From 8e72b0b0e4775321db42142bd544107aa8eceb56 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 29 Feb 2024 10:48:36 +0200 Subject: [PATCH] show testing shared templates --- app/controllers/dashboard_controller.rb | 2 +- app/views/templates_code_modal/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index c447fd6c..4047dda3 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -54,7 +54,7 @@ class DashboardController < ApplicationController rel = templates.active.preload(:author).order(id: :desc) if params[:q].blank? - if Docuseal.multitenant? + if Docuseal.multitenant? && !current_account.testing? rel = rel.where(folder_id: current_account.default_template_folder.id) else shared_template_ids = diff --git a/app/views/templates_code_modal/show.html.erb b/app/views/templates_code_modal/show.html.erb index ffab41b9..b20cf352 100644 --- a/app/views/templates_code_modal/show.html.erb +++ b/app/views/templates_code_modal/show.html.erb @@ -18,7 +18,7 @@ <%= render 'templates/embedding', template: @template %> - <% if can?(:manage, TemplateSharing.new(template: @template)) && !Docuseal.multitenant? %> + <% if can?(:manage, TemplateSharing.new(template: @template)) %> <%= form_for '', url: template_sharings_testing_index_path, method: :post, html: { class: 'mt-1' } do |f| %> <%= f.hidden_field :template_id, value: @template.id %>