add template access

This commit is contained in:
Pete Matsyburka
2024-12-08 01:37:20 +02:00
parent bacbc4309c
commit 1746920eb5
21 changed files with 139 additions and 17 deletions
@@ -45,7 +45,7 @@ class TemplatesDashboardController < ApplicationController
end
def filter_templates(templates)
rel = templates.active.preload(:author).order(id: :desc)
rel = templates.active.preload(:author, :template_accesses).order(id: :desc)
if params[:q].blank?
if Docuseal.multitenant? && !current_account.testing?