Backend de erp-core - Workspace V2
Go to file
Adrian Flores Cortes 98fc0cf944 [RBAC-002] feat: Migrate all routes from requireRoles to requireAccess
Phase 2 of RBAC propagation - migrates 18 route files to use hybrid
requireAccess() middleware for permission-based authorization:

P1 Routes (auth/billing):
- users.routes.ts (11 occurrences)
- roles.routes.ts (11 occurrences)
- permissions.routes.ts (8 occurrences)
- invoices.routes.ts (9 occurrences)
- financial.routes.ts (42 occurrences)

P2 Routes (business):
- partners.routes.ts (16 occurrences)
- sales.routes.ts (32 occurrences)
- purchases.routes.ts (21 occurrences)

P3 Routes (operations):
- inventory.routes.ts (28 occurrences)
- hr.routes.ts (28 occurrences)
- crm.routes.ts (23 occurrences)
- core.routes.ts (21 occurrences)
- tenants.routes.ts (12 occurrences)
- companies.routes.ts (9 occurrences)
- warehouses.routes.ts (6 occurrences)
- products.routes.ts (6 occurrences)
- projects.routes.ts (6 occurrences)
- system.routes.ts (2 occurrences)

Total: ~271 route protections migrated to permission-based access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 01:43:05 -06:00
src [RBAC-002] feat: Migrate all routes from requireRoles to requireAccess 2026-01-31 01:43:05 -06:00
.env.example Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
.gitignore Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
Dockerfile Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
jest.config.js test(core): Add comprehensive tests for core catalog services 2026-01-18 09:21:22 -06:00
package-lock.json chore: Update package-lock.json 2026-01-25 02:27:27 -06:00
package.json fix: Resolve entity/service field mismatches and build errors (84→19) 2026-01-18 02:27:03 -06:00
service.descriptor.yml Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
tsconfig.json Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
TYPEORM_DEPENDENCIES.md Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
TYPEORM_INTEGRATION_SUMMARY.md Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
TYPEORM_USAGE_EXAMPLES.md Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00