From 40d91df7327d3f2434a536f25768c21b04cffcc9 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Wed, 15 Jul 2026 10:49:09 +0300 Subject: [PATCH] Revert "adjust shared query" This reverts commit 56da326709837a46c2e5238b626a194ceab93690. --- lib/templates.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/templates.rb b/lib/templates.rb index 44ae5cae..26e58a3e 100644 --- a/lib/templates.rb +++ b/lib/templates.rb @@ -59,7 +59,6 @@ module Templates .select(1).arel.exists Template.where(id: TemplateSharing.where(account_id: shared_account_ids).select(:template_id)) - .where(account_id: account.linked_account_account.account_id) .where.not(exists_access) end