endpoint carritos validados por token
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user