How to `multitenancy :bypass` of nested/normal load
Hi, if i have a relation that has
read_action
read_action
which call the function which has
multitenancy :bypass
multitenancy :bypass
, i get this error
** (Ash.Error.Invalid) Bread Crumbs: > Error returned from: MishkaDocument.Section.read Invalid Error * Queries against the MishkaDocument.Section resource require a tenant to be specified
** (Ash.Error.Invalid) Bread Crumbs: > Error returned from: MishkaDocument.Section.read Invalid Error * Queries against the MishkaDocument.Section resource require a tenant to be specified
belongs_to :master_workspace_version, MishkaDocument.WorkspaceVersion do public? true source_attribute :workspace_version_id destination_attribute :id read_action :read_any description "The workspace version this section belongs to (master admin access, bypass tenant)" end
belongs_to :master_workspace_version, MishkaDocument.WorkspaceVersion do public? true source_attribute :workspace_version_id destination_attribute :id read_action :read_any description "The workspace version this section belongs to (master admin access, bypass tenant)" end
This
:read_any
:read_any
inside
MishkaDocument.WorkspaceVersion
MishkaDocument.WorkspaceVersion
is
read :read_any do multitenancy :bypass description "Reads all versions bypassing tenant filtering (for master relationships)" pagination offset?: true, default_limit: 20, max_page_size: 100, countable: true end
read :read_any do multitenancy :bypass description "Reads all versions bypassing tenant filtering (for master relationships)" pagination offset?: true, default_limit: 20, max_page_size: 100, countable: true end
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.