ash_policy_access v0.1.0 AshPolicyAccess.Check behaviour View Source
A behaviour for declaring checks, which can be used to easily construct authorization rules.
Link to this section Summary
Link to this section Types
Specs
authorizer() :: AshPolicyAccess.Authorizer.t()
Specs
options() :: Keyword.t()
Link to this section Functions
Link to this section Callbacks
Specs
auto_filter(Ash.actor(), authorizer(), options()) :: Keyword.t()
Specs
check(Ash.actor(), [Ash.record()], map(), options()) :: {:ok, [Ash.record()] | boolean()} | {:error, Ash.error()}
Specs
Specs
strict_check(Ash.actor(), authorizer(), options()) :: boolean() | :unknown
Specs
type() :: :atom