adjust shared query

pull/698/merge
Pete Matsyburka 4 weeks ago
parent 672008f8af
commit 56da326709

@ -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

Loading…
Cancel
Save