feat(contribuyentes): permitir a supervisor crear contribuyentes
- Agrega 'supervisor' al authorize() de POST /contribuyentes
This commit is contained in:
@@ -14,7 +14,7 @@ router.use(tenantMiddleware);
|
|||||||
|
|
||||||
// === Static routes FIRST (before /:id to avoid route conflict) ===
|
// === Static routes FIRST (before /:id to avoid route conflict) ===
|
||||||
router.get('/', ctrl.list);
|
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.post('/backfill', authorize('owner'), ctrl.backfill);
|
||||||
router.get('/catalogo-obligaciones', obligacionesCtrl.getCatalogo);
|
router.get('/catalogo-obligaciones', obligacionesCtrl.getCatalogo);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user