Staff access & permissions (Administrator setup)
This page explains how staff access is controlled.
Staff roles
Staff users can have roles (for example: administrator, manager, operator, viewer). Roles can be used to: - restrict workflow transitions (optional), - support escalation routing (optional).
Category restrictions (who can work on what)
You can restrict which categories a staff user can see/work on.
How it behaves: - If a staff user has no restrictions set, they can work on all categories. - If restrictions are set, they will only see occurrences in those categories.
Behind the scenes (grounded in code)
- Staff profile:
apps/municipalities/models.py→MunicipalityUser - Restriction field:
MunicipalityUser.allowed_occurrence_types - API filtering:
StaffOccurrenceFilterMixinused in occurrence viewsets (apps/occurrences/views.py)