From 245f954b053e051984c8b2c79f3da329f3338565 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 10 Sep 2021 21:07:28 +0200 Subject: [PATCH] add somes routes for scodoc7 compat API --- app/views/notes.py | 2 +- app/views/scolar.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/notes.py b/app/views/notes.py index 7fbc6318..67f58dd8 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -599,7 +599,7 @@ sco_publish("/ue_move", sco_edit_formation.ue_move, Permission.ScoChangeFormatio @bp.route("/formsemestre_list") @scodoc -@permission_required(Permission.ScoView) +@permission_required_compat_scodoc7(Permission.ScoView) @scodoc7func def formsemestre_list( format=None, diff --git a/app/views/scolar.py b/app/views/scolar.py index 8f026782..145208cd 100644 --- a/app/views/scolar.py +++ b/app/views/scolar.py @@ -402,6 +402,8 @@ def search_etud_by_name(): # XMLgetEtudInfos était le nom dans l'ancienne API ScoDoc 6 @bp.route("/etud_info") @bp.route("/XMLgetEtudInfos") +@bp.route("/Absences/XMLgetEtudInfos") # compat with OLD clients +@bp.route("/Notes/XMLgetEtudInfos") @scodoc @permission_required_compat_scodoc7(Permission.ScoView) @scodoc7func