ash_policy_authorizer v0.8.1 AshPolicyAuthorizer.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() :: AshPolicyAuthorizer.Authorizer.t()
Specs
check_type() :: :simple | :filter | :manual
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()) :: {:ok, boolean() | :unknown}
Specs
type() :: check_type()