Ash FrameworkAF
Ash Framework8mo ago
29 replies
Marco Dell'Olio

Trickle down multitenancy :bypass

I have an entry point for a resource that bypasses the tenancy
  read :get_public_event do
      get_by :id
      multitenancy :bypass
    end


this resource preloads other tenanted resources returning an error

** (Ash.Error.Invalid.TenantRequired) Bread Crumbs:
  > Error returned from: CalendarEvents.Ash.EventAttendee.read
  > Error returned from: CalendarEvents.Ash.Event.get_public_event


is there a way to pass down that context or should I create a non tenanted interface for each resource?
Was this page helpful?