From ad0cd6236cb6ae69cd90c219af99096eecc902b8 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 24 Oct 2021 12:01:42 +0200 Subject: [PATCH] AddBilletAbsence: autorise POST pour anciens clients PHP --- app/views/absences.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/absences.py b/app/views/absences.py index 24d972ee..21ed46f6 100644 --- a/app/views/absences.py +++ b/app/views/absences.py @@ -1046,9 +1046,9 @@ def EtatAbsencesDate(group_ids=[], date=None): # list of groups to display # ----- Gestion des "billets d'absence": signalement par les etudiants eux mêmes (à travers le portail) -@bp.route("/AddBilletAbsence") +@bp.route("/AddBilletAbsence", methods=["GET", "POST"]) # API ScoDoc 7 compat @scodoc -@permission_required(Permission.ScoAbsAddBillet) +@permission_required_compat_scodoc7(Permission.ScoAbsAddBillet) @scodoc7func def AddBilletAbsence( begin, @@ -1060,7 +1060,7 @@ def AddBilletAbsence( justified=True, xml_reply=True, ): - """Memorise un "billet" + """Mémorise un "billet" begin et end sont au format ISO (eg "1999-01-08 04:05:06") """ t0 = time.time() @@ -1251,9 +1251,9 @@ def XMLgetBilletsEtud(etudid=False): return r -@bp.route("/listeBillets", methods=["GET", "POST"]) # pour compat anciens clients PHP +@bp.route("/listeBillets", methods=["GET"]) @scodoc -@permission_required_compat_scodoc7(Permission.ScoView) +@permission_required(Permission.ScoView) @scodoc7func def listeBillets(): """Page liste des billets non traités et formulaire recherche d'un billet"""