From c09f8d03ea0b6ac63fe5919d425a4b6b594d74d7 Mon Sep 17 00:00:00 2001 From: Laurent Caouissin Date: Wed, 22 May 2024 12:32:56 +0200 Subject: [PATCH 1/2] fix: stamp restriction --- .../query/QuestionnairesServiceQueryPostgresqlImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/insee/pogues/persistence/query/QuestionnairesServiceQueryPostgresqlImpl.java b/src/main/java/fr/insee/pogues/persistence/query/QuestionnairesServiceQueryPostgresqlImpl.java index f05efa52..5d7ca7d0 100644 --- a/src/main/java/fr/insee/pogues/persistence/query/QuestionnairesServiceQueryPostgresqlImpl.java +++ b/src/main/java/fr/insee/pogues/persistence/query/QuestionnairesServiceQueryPostgresqlImpl.java @@ -275,7 +275,7 @@ private boolean isStampRestricted(String stamp) { private boolean isUserAuthorized(JsonNode questionnaire, String action) { boolean isAuthorized=true; - String stamp = questionnaire.get("owner").toString(); + String stamp = questionnaire.get("owner").asText(); if (isStampRestricted(stamp) && !stampsRestrictionsService.isQuestionnaireOwner(stamp)) { isAuthorized=false; log.info("{} questionnaire authorized",action); From 7836c6abba0253efe3b679c1409212545c0ea337 Mon Sep 17 00:00:00 2001 From: Laurent Caouissin Date: Wed, 22 May 2024 12:33:06 +0200 Subject: [PATCH 2/2] bump to 4.6.6 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fe958c72..8e640b18 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ fr.insee Pogues-BO jar - 4.6.5-SNAPSHOT + 4.6.6-SNAPSHOT Pogues-Back-Office