Ash.Policy.Info (ash v3.5.9)

View Source

An authorization extension for ash resources.

For more information, see Ash.Policy.Authorizer

Summary

Functions

Gets the field policies relevant to a given field

The log level at which Ash policy authorizer logs policy breakdowns. Defaults to none.

The log level at which Ash policy authorizer logs successful policy breakdowns. Defaults to none.

Whether or not Ash policy authorizer is configured to show policy breakdowns in error messages

A utility to determine if a given query/changeset would pass authorization.

Functions

default_access_type(resource)

describe_resource(domain, resource)

field_policies(resource)

field_policies_for_field(resource, field)

Gets the field policies relevant to a given field

log_policy_breakdowns()

The log level at which Ash policy authorizer logs policy breakdowns. Defaults to none.

log_successful_policy_breakdowns()

The log level at which Ash policy authorizer logs successful policy breakdowns. Defaults to none.

policies(domain \\ nil, resource)

private_fields_policy(resource)

show_policy_breakdowns?()

Whether or not Ash policy authorizer is configured to show policy breakdowns in error messages

strict_check(actor, query, domain)

A utility to determine if a given query/changeset would pass authorization.

This is still experimental.