ash_policy_authorizer v0.7.0 AshPolicyAuthorizer.FilterCheck behaviour View Source
A type of check that is represented by a filter statement
That filter statement can be templated, currently only supporting {:_actor, field}
which will replace that portion of the filter with the appropriate field value from the actor and
{:_actor, :_primary_key}
which will replace the value with a keyword list of the primary key
fields of an actor to their values, like [id: 1]
. If the actor is not present {:_actor, field}
becomes nil
, and {:_actor, :_primary_key}
becomes false
.
Link to this section Summary
Link to this section Types
Specs
options() :: Keyword.t()