mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
adjust shared query
This commit is contained in:
@@ -59,6 +59,7 @@ module Templates
|
|||||||
.select(1).arel.exists
|
.select(1).arel.exists
|
||||||
|
|
||||||
Template.where(id: TemplateSharing.where(account_id: shared_account_ids).select(:template_id))
|
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)
|
.where.not(exists_access)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user