Revert "adjust shared query"

This reverts commit 56da326709.
This commit is contained in:
Pete Matsyburka
2026-07-15 10:49:09 +03:00
parent c8e783a210
commit 40d91df732
-1
View File
@@ -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