From 7f707d5a4c51035f06f33215d9343d388a32249b Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 30 Aug 2022 16:48:10 +0200 Subject: [PATCH] Fix: API route etudiant-formsemestre-bulletin : acces par dept --- app/api/etudiants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/etudiants.py b/app/api/etudiants.py index 2f81b0a25..f8afcb05a 100644 --- a/app/api/etudiants.py +++ b/app/api/etudiants.py @@ -335,7 +335,7 @@ def etudiant_bulletin_semestre( """ formsemestre = FormSemestre.query.filter_by(id=formsemestre_id).first_or_404() dept = Departement.query.filter_by(id=formsemestre.dept_id).first_or_404() - if g.scodoc_dept and dept != g.scodoc_dept: + if g.scodoc_dept and dept.acronym != g.scodoc_dept: return json_error(404, "formsemestre non trouve") if etudid is not None: query = Identite.query.filter_by(id=etudid)