This commit is contained in:
xXpuma99Xx
2022-08-04 20:23:26 -05:00
parent 751b1b44fc
commit 1002c878ba
2 changed files with 5 additions and 5 deletions
@@ -1,6 +1,6 @@
import {
Body,
ConflictException,
ForbiddenException,
Controller,
Delete,
Get,
@@ -47,7 +47,7 @@ export class CarreraProgramaController {
const admin: Operador = req.user.operador;
if (!admin || admin.tipoUsuario.id_tipo_usuario != 3)
throw new ConflictException(
throw new ForbiddenException(
'No tienes los permisos necesarios para realizar esta acción.',
);
return this.carreraProgramaService.create(
@@ -72,7 +72,7 @@ export class CarreraProgramaController {
const admin: Operador = req.user.operador;
if (!admin || admin.tipoUsuario.id_tipo_usuario != 3)
throw new ConflictException(
throw new ForbiddenException(
'No tienes los permisos necesarios para realizar esta acción.',
);
return this.carreraProgramaService.delete(admin, body.id_carrera_programa);