How can we restrict each user's access to a specific set of includes for an action?

How can we restrict each user's access to a specific set of includes for an action? for example public_read just can loads form and user in ash json!
json_api do
type "submission"
includes [:form, :tenant_form, :master_form, :files, :master_files, :user]
end
json_api do
type "submission"
includes [:form, :tenant_form, :master_form, :files, :master_files, :user]
end
Thank you
Solution:
you can't, that is determined by the other resource
Jump to solution
1 Reply
Solution
ZachDaniel
ZachDaniel3w ago
you can't, that is determined by the other resource

Did you find this page helpful?