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

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

Link to this function

default_access_type(resource)

View Source
Link to this function

describe_resource(domain, resource)

View Source
Link to this function

field_policies(resource)

View Source
Link to this function

field_policies_for_field(resource, field)

View Source

Gets the field policies relevant to a given field

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

Link to this function

log_successful_policy_breakdowns()

View Source

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

Link to this function

policies(domain, resource)

View Source
Link to this function

private_fields_policy(resource)

View Source
Link to this function

show_policy_breakdowns?()

View Source

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

Link to this function

strict_check(actor, query, domain)

View Source

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

This is still experimental.