From dbc9aab7c3570f1c0d5febf012996471789e5998 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 3 Nov 2022 14:11:57 +0100 Subject: [PATCH] Fix: permissions RelationsEntreprisesExport. + reserve ScoEtudChangePhoto for future API entry. --- app/scodoc/sco_permissions.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/scodoc/sco_permissions.py b/app/scodoc/sco_permissions.py index aad4ee91..409b77f3 100644 --- a/app/scodoc/sco_permissions.py +++ b/app/scodoc/sco_permissions.py @@ -45,15 +45,16 @@ _SCO_PERMISSIONS = ( # Application relations entreprises (1 << 23, "RelationsEntreprisesView", "Voir l'application relations entreprises"), (1 << 24, "RelationsEntreprisesChange", "Modifier les entreprises"), - ( - 1 << 25, - "RelationsEntreprisesExport", - "Exporter les données de l'application relations entreprises", - ), (1 << 25, "RelationsEntreprisesSend", "Envoyer des offres"), (1 << 26, "RelationsEntreprisesValidate", "Valide les entreprises"), (1 << 27, "RelationsEntreprisesCorrespondants", "Voir les correspondants"), + ( + 1 << 28, + "RelationsEntreprisesExport", + "Exporter les données de l'application relations entreprises", + ), # 27 à 39 ... réservé pour "entreprises" + (1 << 40, "ScoEtudChangePhoto", "Modifier la photo d'un étudiant"), # Api scodoc9 # XXX à revoir (1 << 40, "ScoAssiduiteChange", "Modifier les assiduités"),