From 22f8f8cd73108ff7ad8409e836921d72bf3ea491 Mon Sep 17 00:00:00 2001 From: Maxime Vergez Date: Wed, 9 Aug 2023 17:22:39 +0200 Subject: [PATCH] revert: put back commented lines on admin --- .../geonature/core/gn_permissions/admin.py | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/backend/geonature/core/gn_permissions/admin.py b/backend/geonature/core/gn_permissions/admin.py index d604215fec..c209153468 100644 --- a/backend/geonature/core/gn_permissions/admin.py +++ b/backend/geonature/core/gn_permissions/admin.py @@ -555,16 +555,16 @@ def get_count_query(self): ) ) - -admin.add_view( - ObjectAdmin( - PermObject, - db.session, - name="Objets", - category="Permissions", - endpoint="permissions/object", - ) -) +# Retirer pour plus de lisibilité de l'interface des permissions +# admin.add_view( +# ObjectAdmin( +# PermObject, +# db.session, +# name="Objets", +# category="Permissions", +# endpoint="permissions/object", +# ) +# ) admin.add_view( @@ -577,13 +577,13 @@ def get_count_query(self): ) ) - -admin.add_view( - PermissionAvailableAdmin( - PermissionAvailable, - db.session, - name="Permissions disponibles", - category="Permissions", - endpoint="permissions/availablepermission", - ) -) +# Retirer pour plus de lisibilité de l'interface des permissions +# admin.add_view( +# PermissionAvailableAdmin( +# PermissionAvailable, +# db.session, +# name="Permissions disponibles", +# category="Permissions", +# endpoint="permissions/availablepermission", +# ) +# )