Policy check macros automatically imported into Ash resources that use AshAuthzed.
Summary
Functions
Alias for rebac_can/2.
Checks if the actor has permission on the resource in Licet / SpiceDB.
Works for both read queries (via lookup_resources) and single-record mutations.
Checks if the actor has permission to assign the incoming value of attribute on target (:on).
Functions
Alias for rebac_can/2.
Alias for rebac_can_assign/2.
Checks if the actor has permission on the resource in Licet / SpiceDB.
Works for both read queries (via lookup_resources) and single-record mutations.
Checks if the actor has permission to assign the incoming value of attribute on target (:on).
For example, rebac_can_assign(:role, on: "platform:main") checks
platform:main#assign_<new_role>@user:<actor_id>.