View Source Ash.Policy.Info (ash v3.4.46)

An authorization extension for ash resources.

For more information, see Ash.Policy.Authorizer

Summary

Functions

Gets the field policies relevant to a given field

Whether or not Ash policy authorizer is configured to log policy breakdowns

Whether or not Ash policy authorizer is configured to log successful policy breakdowns

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

Whether or not Ash policy authorizer is configured to log policy breakdowns

log_successful_policy_breakdowns()

Whether or not Ash policy authorizer is configured to log successful policy breakdowns

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.