From b5eefa1517d9e2637c424f2d0bf1f2171c695de0 Mon Sep 17 00:00:00 2001 From: amandine-sahl Date: Fri, 6 Dec 2024 15:37:03 +0100 Subject: [PATCH] Correction permissions observation --- backend/gn_module_monitoring/monitoring/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/gn_module_monitoring/monitoring/models.py b/backend/gn_module_monitoring/monitoring/models.py index 0f148ca7..0594da17 100644 --- a/backend/gn_module_monitoring/monitoring/models.py +++ b/backend/gn_module_monitoring/monitoring/models.py @@ -160,7 +160,7 @@ def has_instance_permission(self, scope): if self.id_base_visit: return DB.session.get( TMonitoringVisits, self.id_base_visit - ).has_instance_permission(scope, True) + ).has_instance_permission(scope) elif scope == 3: return True