forked from ScoDoc/ScoDoc
AddBilletAbsence: autorise POST pour anciens clients PHP
This commit is contained in:
parent
e8ce1e303e
commit
ad0cd6236c
@ -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"""
|
||||
|
Loading…
Reference in New Issue
Block a user