diff --git a/app/scodoc/sco_permissions.py b/app/scodoc/sco_permissions.py index cd54f7e3b0..5e1bd8c4dd 100644 --- a/app/scodoc/sco_permissions.py +++ b/app/scodoc/sco_permissions.py @@ -12,7 +12,6 @@ _SCO_PERMISSIONS = ( # - add/delete departments # - tous rôles lors creation utilisateurs (1 << 1, "ScoSuperAdmin", "Super Administrateur"), - (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)"), diff --git a/tests/api/samples.csv b/tests/api/samples.csv index 864591b435..0fa2ecc5fd 100644 --- a/tests/api/samples.csv +++ b/tests/api/samples.csv @@ -75,7 +75,7 @@ user-role-remove /user/10/role/Observateur/remove ScoSuperAdmin POST role-create /role/create/customRole ScoSuperAdmin POST {"permissions": ["ScoView", "ScoUsersView"]} role-remove_permission /role/customRole/remove_permission/ScoUsersView ScoSuperAdmin POST role-add_permission /role/customRole/add_permission/ScoUsersView ScoSuperAdmin POST -role-edit /role/customRole/edit ScoSuperAdmin POST { "name" : "LaveurDeVitres", "permissions" : [ "ScoView", "APIView" ] } +role-edit /role/customRole/edit ScoSuperAdmin POST { "name" : "LaveurDeVitres", "permissions" : [ "ScoView" ] } role-delete /role/customRole/delete ScoSuperAdmin POST logos /logos ScoSuperAdmin GET logo /logo/demo ScoSuperAdmin GET