endpoint carritos validados por token

This commit is contained in:
xXpuma99Xx
2022-08-05 23:25:41 -05:00
parent fd9d5d3849
commit 4b39c19884
3 changed files with 102 additions and 42 deletions
@@ -101,7 +101,7 @@ export class CarreraProgramaService {
institucion.id_institucion
)
throw new ForbiddenException(
'No puedes acceder a esta información porque no te pertenece.',
'No puedes acceder a esta información porque no perteneces a esta institución.',
);
} else {
let lePertenece = false;
@@ -116,7 +116,7 @@ export class CarreraProgramaService {
}
if (!lePertenece)
throw new ForbiddenException(
'No puedes acceder a esta información porque no te pertenece.',
'No puedes acceder a esta información porque no perteneces a esta institución.',
);
}
return this.repository.find({