diff --git a/app/scodoc/sco_roles_default.py b/app/scodoc/sco_roles_default.py index 0670bc8062..6f8d79eeea 100644 --- a/app/scodoc/sco_roles_default.py +++ b/app/scodoc/sco_roles_default.py @@ -9,48 +9,50 @@ from app.scodoc.sco_permissions import Permission as p SCO_ROLES_DEFAULTS = { "Observateur": (p.ScoObservateur,), "Ens": ( - p.ScoObservateur, - p.ScoView, - p.ScoEnsView, - p.ScoUsersView, - p.ScoEtudAddAnnotations, - p.ScoAbsChange, p.ScoAbsAddBillet, + p.ScoAbsChange, + p.ScoEnsView, p.ScoEntrepriseView, + p.ScoEtudAddAnnotations, + p.ScoObservateur, + p.ScoUsersView, + p.ScoView, ), "Secr": ( - p.ScoObservateur, - p.ScoView, - p.ScoUsersView, - p.ScoEtudAddAnnotations, - p.ScoAbsChange, p.ScoAbsAddBillet, - p.ScoEntrepriseView, + p.ScoAbsChange, + p.ScoEditApo, p.ScoEntrepriseChange, + p.ScoEntrepriseView, + p.ScoEtudAddAnnotations, p.ScoEtudChangeAdr, + p.ScoObservateur, + p.ScoUsersView, + p.ScoView, ), # Admin est le chef du département, pas le "super admin" # on doit donc lister toutes ses permissions: "Admin": ( - p.ScoObservateur, - p.ScoView, - p.ScoEnsView, - p.ScoUsersView, - p.ScoEtudAddAnnotations, - p.ScoAbsChange, p.ScoAbsAddBillet, - p.ScoEntrepriseView, - p.ScoEntrepriseChange, - p.ScoEtudChangeAdr, + p.ScoAbsChange, p.ScoChangeFormation, - p.ScoEditFormationTags, - p.ScoEditAllNotes, + p.ScoChangePreferences, p.ScoEditAllEvals, - p.ScoImplement, + p.ScoEditAllNotes, + p.ScoEditApo, + p.ScoEditFormationTags, + p.ScoEnsView, + p.ScoEntrepriseChange, + p.ScoEntrepriseView, + p.ScoEtudAddAnnotations, + p.ScoEtudChangeAdr, p.ScoEtudChangeGroups, p.ScoEtudInscrit, + p.ScoImplement, + p.ScoObservateur, p.ScoUsersAdmin, - p.ScoChangePreferences, + p.ScoUsersView, + p.ScoView, ), # RespPE est le responsable poursuites d'études # il peut ajouter des tags sur les formations: