ash v0.1.1 Ash.Authorization.Check.RelationshipAccess View Source

Allows the user to access the data if they are related to the resource via the provided relationship.

use enforce_access?: true to have the precheck only allow access via the relationship, or that relationship's foreign keys.

#TODO: Document this better

Link to this section Summary

Link to this section Functions

Link to this function

check(user, data, arg3, opts)

View Source

Callback implementation for Ash.Authorization.Check.check/4.

Callback implementation for Ash.Authorization.Check.describe/1.

Callback implementation for Ash.Authorization.Check.init/1.

Link to this function

precheck(user, arg2, opts)

View Source

Callback implementation for Ash.Authorization.Check.precheck/3.