feat(contribuyentes): permitir a supervisor crear contribuyentes

- Agrega 'supervisor' al authorize() de POST /contribuyentes
This commit is contained in:
Horux Dev
2026-05-25 15:22:23 +00:00
parent cbefaa2bf7
commit 0fa2c3c90f

View File

@@ -14,7 +14,7 @@ router.use(tenantMiddleware);
// === Static routes FIRST (before /:id to avoid route conflict) ===
router.get('/', ctrl.list);
router.post('/', authorize('owner', 'cfo'), ctrl.create);
router.post('/', authorize('owner', 'cfo', 'supervisor'), ctrl.create);
router.post('/backfill', authorize('owner'), ctrl.backfill);
router.get('/catalogo-obligaciones', obligacionesCtrl.getCatalogo);