AshPolicyAuthorizer.SimpleCheck behaviour (ash_policy_authorizer v0.16.5) View Source
A type of check that operates only on request context, never on the data
Simply define match?/3
, which gets the actor, request context, and opts, and returns true or false
Link to this section Summary
Callbacks
Whether or not the request matches the check
Link to this section Types
Specs
authorizer() :: AshPolicyAuthorizer.Authorizer.t()
Specs
options() :: Keyword.t()
Link to this section Callbacks
Specs
match?(struct(), authorizer(), options()) :: boolean()
Whether or not the request matches the check