AshWorkflow.Checks (AshWorkflow v0.6.0)

Copy Markdown View Source

Re-exports Ash policy check helpers for use inside workflow step blocks.

Only includes checks that don't conflict with step DSL option names. For checks not listed here, pass the tuple directly:

policy {Ash.Policy.Check.ActorAttributeEquals, attribute: :role, value: :admin}

Summary

Functions

actor_attribute_equals(attribute, value)

See Ash.Policy.Check.Builtins.actor_attribute_equals/2.

actor_present()

See Ash.Policy.Check.Builtins.actor_present/0.

relates_to_actor_via(relationship_path, opts \\ [])

See Ash.Policy.Check.Builtins.relates_to_actor_via/2.