Role inheritance
Rights inherit permissively: a permission granted by the parent is also granted to the child (OR). A child false does not revoke a parent’s grant. Parent filters and the child’s module/action/named-policy filters are combined with AND. Multiple assigned roles grant rights additively; their allowed record scopes are alternatives.
Hierarchical roles
Section titled “Hierarchical roles”Roles can be hierarchical, meaning that a role can inherit permissions from another role. This is useful when you have multiple roles with similar permissions, but one role has additional permissions.
To create a hierarchical role, you must set the parent key in the role configuration:
[{ "resource_entity": "roles", "resource": { "module": "roles", "fields": { "name": "Accountant", "slug": "accountant", "parent": "${resource_entity.manager}", "modules": { "invoices": true, "products": { "create": false, "read": true, "update": false, "delete": false, "history": true, "fields": true }, "customers": { "create": false, "read": false, "update": false, "delete": false, "history": false, "fields": true } } } }}]