Search documentation of ash

# View Source Ash.Policy.SimpleCheck behaviour (ash v3.4.30)

A type of check that operates only on request context, never on the data

Define `match?/3`, which gets the actor, request context, and opts, and returns true or false

# Summary

## Types

actor()
context()
options()

## Callbacks

match?(actor, context, options)

Whether or not the request matches the check

# Types

Link to this type

# actor()

View Source

    @type actor() :: Ash.Policy.Check.actor()

Link to this type

# context()

View Source

    @type context() :: Ash.Policy.Authorizer.t()

Link to this type

# options()

View Source

    @type options() :: Keyword.t()

# Callbacks

Link to this callback

# match?(actor, context, options)

View Source

    @callback match?(actor(), context(), options()) ::
      boolean() | {:ok, boolean()} | {:error, term()}

Whether or not the request matches the check