fix: add collector role to API endpoints for mobile dashboard access
Collector users were blocked from ticket, payment, invoice, and client endpoints requiring 'technician' role. Added 'collector' to @Roles decorators and the COLLECTOR role to the shared role hierarchy.
This commit is contained in:
@@ -3,6 +3,7 @@ export const Role = {
|
||||
TENANT_ADMIN: 'tenant_admin',
|
||||
MANAGER: 'manager',
|
||||
TECHNICIAN: 'technician',
|
||||
COLLECTOR: 'collector',
|
||||
VIEWER: 'viewer',
|
||||
} as const;
|
||||
|
||||
@@ -20,6 +21,7 @@ const ROLE_LEVEL: Record<string, number> = {
|
||||
[Role.TENANT_ADMIN]: 80,
|
||||
[Role.MANAGER]: 60,
|
||||
[Role.TECHNICIAN]: 40,
|
||||
[Role.COLLECTOR]: 30,
|
||||
[Role.VIEWER]: 20,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user