mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 19:58:11 +00:00
Merge pull request #926 from Tria-plc/freight_feature/usermanagement
implement freight permissions for trains, wagons, and routes
This commit is contained in:
@@ -212,6 +212,8 @@ export const FLEET_RAIL_PERMISSIONS: FreightPermissionSeed[] = [
|
||||
perm('e1f00001-0001-4000-8000-000000000002', 'edr_freight_app:cargoes:create', 'Create cargo'),
|
||||
perm('e1f00001-0001-4000-8000-000000000003', 'edr_freight_app:cargoes:update', 'Update cargo'),
|
||||
perm('e1f00001-0001-4000-8000-000000000004', 'edr_freight_app:cargoes:delete', 'Delete cargo'),
|
||||
perm('e1g00001-0001-4000-8000-000000000001', 'edr_freight_app:consignments:view', 'View consignments'),
|
||||
perm('e1g00001-0001-4000-8000-000000000002', 'edr_freight_app:consignments:create', 'Create consignment'),
|
||||
];
|
||||
|
||||
// G. Fleet — road & telemetry
|
||||
@@ -493,6 +495,10 @@ export const FREIGHT_PERMS = {
|
||||
update: 'edr_freight_app:cargoes:update',
|
||||
delete: 'edr_freight_app:cargoes:delete',
|
||||
},
|
||||
consignments: {
|
||||
view: 'edr_freight_app:consignments:view',
|
||||
create: 'edr_freight_app:consignments:create',
|
||||
},
|
||||
vehicles: {
|
||||
view: 'edr_freight_app:vehicles:view',
|
||||
create: 'edr_freight_app:vehicles:create',
|
||||
|
||||
Reference in New Issue
Block a user