Notifications — permissions
Scaffolded stub — replace with proper documentation when this module is next touched.
Returned by NotificationsModule.get_permissions() (relative names; the registry namespaces them as notifications.<name>).
| Permission | Allows | Required by |
|---|---|---|
notifications.templates.read | Describe what this allows. | List the endpoints. |
notifications.templates.write | Describe what this allows. | List the endpoints. |
notifications.preferences.read | Describe what this allows. | List the endpoints. |
notifications.preferences.write | Describe what this allows. | List the endpoints. |
notifications.logs.read | Describe what this allows. | List the endpoints. |
notifications.send | Describe what this allows. | List the endpoints. |
notifications.settings.read | Describe what this allows. | List the endpoints. |
notifications.settings.write | Describe what this allows. | List the endpoints. |
Role assignment
See backend/app/core/auth/permissions.py for the canonical role table.
Adding a new permission
- Add the relative name to
get_permissions()inbackend/app/modules/notifications/__init__.py(ormodule.py). - Add the namespaced form to the relevant role(s) in
backend/app/core/auth/permissions.py. - Add a row to the table above.
- Annotate the endpoint(s) with
Depends(require_permission(...)). - Update
frontend/app/config/permissions.tsif it gates UI.