AshGrant.Dsl.CanPerform (AshGrant v0.17.0)

Copy Markdown View Source

Represents a can_perform entity in the AshGrant DSL.

Each entity generates a boolean calculation that evaluates whether the current actor can perform the specified action on each record.

Fields

  • :action - The action atom (e.g., :update, :destroy)
  • :name - Custom calculation name. Defaults to :can_<action>?
  • :public? - Whether the calculation is public (default: true)

Summary

Types

t()

@type t() :: %AshGrant.Dsl.CanPerform{
  __spark_metadata__: map() | nil,
  action: atom(),
  name: atom() | nil,
  public?: boolean()
}