dodil/erp-brick-activity

src/brick_activity/roles.yaml

# The default roles this brick ships (erp-platform 0.9.2: a brick decides by PERMISSION; the roles are the customer's).
# From the CRM spec's actors (erp-method modules/crm). A composition maps them to its own pool roles — the pool's
# catalog (`dodil appid roles get <pool> --org <org>`) is the deployed truth; `erp-compose check --roles` reads both.
roles:
  rep:          [activity:contact:write, activity:activity:write]
  manager:      [activity:contact:write, activity:activity:write, activity:contact:manage, activity:activity:manage]
  lead_service: [activity:contact:write]          # the lead brick's service client: a converted lead's contact
service_clients: [lead_service]