chore: add missing multi-level editor for approval workflow, rename projects to campaings.
This commit is contained in:
16
frontend/docs/claims-and-roles.md
Normal file
16
frontend/docs/claims-and-roles.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Claims and Roles Guidelines
|
||||
|
||||
To ensure consistency across the application, all claim and role values MUST be in lowercase.
|
||||
|
||||
## Roles
|
||||
The following roles are currently used in the system:
|
||||
- `administrator`
|
||||
- `manager`
|
||||
- `client`
|
||||
- `provider`
|
||||
- `developer`
|
||||
|
||||
## Implementation Notes
|
||||
- **Processing**: The `authStore.js` automatically converts all roles extracted from JWT tokens to lowercase.
|
||||
- **Comparisons**: All checks (e.g., `authStore.hasAnyRole(['role-name'])` or `meta: { roles: ['role-name'] }`) should use lowercase strings.
|
||||
- **Routing**: Route guards in `router.js` expect lowercase role names in the `meta.roles` field.
|
||||
Reference in New Issue
Block a user