From 87278587f9a91a254a737306ffd8b1de1ee654ff Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 28 Jul 2022 21:20:46 +0200 Subject: [PATCH] Transforme permission APIView en ScoView et APIEditGroups en ScoEtudChangeGroups --- app/scodoc/sco_permissions.py | 12 ++++++++---- app/views/scolar.py | 1 + sco_version.py | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/scodoc/sco_permissions.py b/app/scodoc/sco_permissions.py index b534b0235..7e1316930 100644 --- a/app/scodoc/sco_permissions.py +++ b/app/scodoc/sco_permissions.py @@ -12,7 +12,7 @@ _SCO_PERMISSIONS = ( # - ZScoDoc: add/delete departments # - tous rôles lors creation utilisateurs (1 << 1, "ScoSuperAdmin", "Super Administrateur"), - (1 << 2, "APIView", "Voir"), # deprecated + (1 << 2, "APIView", "Voir (obsolete, use ScoView)"), # deprecated (1 << 2, "ScoView", "Voir"), (1 << 3, "ScoEnsView", "Voir les parties pour les enseignants"), (1 << 4, "ScoObservateur", "Observer (accès lecture restreint aux bulletins)"), @@ -28,6 +28,11 @@ _SCO_PERMISSIONS = ( (1 << 14, "ScoAbsAddBillet", "Saisir des billets d'absences"), # changer adresse/photo ou pour envoyer bulletins par mail ou pour debouche (1 << 15, "ScoEtudChangeAdr", "Changer les addresses d'étudiants"), + ( + 1 << 16, + "APIEditGroups", + "API: Modifier les groupes (obsolete, use ScoEtudChangeGroups)", + ), (1 << 16, "ScoEtudChangeGroups", "Modifier les groupes"), # aussi pour demissions, diplomes: (1 << 17, "ScoEtudInscrit", "Inscrire des étudiants"), @@ -52,9 +57,8 @@ _SCO_PERMISSIONS = ( # 27 à 39 ... réservé pour "entreprises" # Api scodoc9 # XXX à revoir - (1 << 41, "APIEditGroups", "API: Modifier les groupes"), - (1 << 42, "APIEditAllNotes", "API: Modifier toutes les notes"), - (1 << 43, "APIAbsChange", "API: Saisir des absences"), + # (1 << 42, "APIEditAllNotes", "API: Modifier toutes les notes"), + # (1 << 43, "APIAbsChange", "API: Saisir des absences"), ) diff --git a/app/views/scolar.py b/app/views/scolar.py index 6c389601a..50ede9e75 100644 --- a/app/views/scolar.py +++ b/app/views/scolar.py @@ -924,6 +924,7 @@ def partition_editor(formsemestre_id: int): "js/partition_editor.js", ], page_title=f"Partitions de {formsemestre.titre_annee()}", + init_datatables=False, ), f"""

diff --git a/sco_version.py b/sco_version.py index ac839f92b..9e9516d44 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.3.22" +SCOVERSION = "9.3.23" SCONAME = "ScoDoc"