ash_policy_authorizer v0.15.0 AshPolicyAuthorizer.SimpleCheck behaviour 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

Link to this section Callbacks

Link to this callback

match?(struct, authorizer, options)

View Source

Specs

match?(struct(), authorizer(), options()) :: boolean()

Whether or not the request matches the check