ash_policy_authorizer v0.1.6 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.

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