MishkaBlog.Resources.Preparations.SiteAskedOn (Mishka Blog v0.0.1)

Copy Markdown View Source

Keeps a public list to the site it is asked on: only the rows whose :through record belongs to the tenant.

  • With no tenant, the list is empty.

  • A site user (an actor with a site_id) gets an empty list on any tenant but its own site. A master, or a visitor with no actor, gets the list of the site it names.

  • A call made with authorize?: false is not filtered.

    prepare {MishkaBlog.Resources.Preparations.SiteAskedOn, through: :team}

Options

  • :through - Required. The relationship to the record that carries the site_id.

Summary

Functions

supports(opts)

Callback implementation for Ash.Resource.Preparation.supports/1.

temporal_safe?(opts)

Callback implementation for Ash.Resource.Preparation.temporal_safe?/1.