no se
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user