From 2ba882f3c3c23b8f0e6492796f1483a69dfbcf9d 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 07d606e87..a17b74faa 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 << 42, "APIEditAllNotes", "API: Modifier toutes les notes"),