AshGrant.Dsl.ScopeThrough (AshGrant v0.14.1)

Copy Markdown View Source

Represents a scope_through entity in the AshGrant DSL.

Propagates parent resource instance permissions to this child resource via a belongs_to relationship.

Fields

  • :relationship - The belongs_to relationship name (e.g., :post)
  • :resource - Optional parent resource module (inferred from relationship if nil)
  • :actions - Optional list of action types to limit propagation to

Summary

Types

t()

@type t() :: %AshGrant.Dsl.ScopeThrough{
  __spark_metadata__: map() | nil,
  actions: [atom()] | nil,
  relationship: atom(),
  resource: module() | nil
}