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()

Link to this section Functions

Link to this function

build_filter(filter, actor)

View Source
Link to this function

is_filter_check?(module)

View Source

Link to this section Callbacks

Link to this callback

filter(options)

View Source (optional)

Specs

filter(options()) :: Keyword.t()