adjust shared query

This commit is contained in:
Pete Matsyburka
2026-07-06 18:45:37 +03:00
parent 672008f8af
commit 56da326709
+1
View File
@@ -59,6 +59,7 @@ 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