From cbcff63b3523d26e7b214f672f14b0015b38d557 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 26 Aug 2022 09:57:35 +0200 Subject: [PATCH] Retire ancienne permission APIView --- app/scodoc/sco_permissions.py | 1 - tests/api/samples.csv | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/scodoc/sco_permissions.py b/app/scodoc/sco_permissions.py index cd54f7e3b..5e1bd8c4d 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 864591b43..0fa2ecc5f 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