Search documentation of ash

# View Source Ash.Policy.Info (ash v3.4.30)

An authorization extension for ash resources.

For more information, see `Ash.Policy.Authorizer`

# Summary

## 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, 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.

# 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

Link to this function

# log_policy_breakdowns()

View Source

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.