From 8fe4bba627656dd7cf95d9afad2491fd2235be86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gst=C3=B6hl?= Date: Thu, 10 Feb 2022 12:58:44 +0100 Subject: [PATCH] enable mode removal for walletActiveModes --- .../verifier/ws/controller/VerificationRulesControllerV2.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/verifier/ws/controller/VerificationRulesControllerV2.java b/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/verifier/ws/controller/VerificationRulesControllerV2.java index a27c79e7..e22a4743 100644 --- a/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/verifier/ws/controller/VerificationRulesControllerV2.java +++ b/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/main/java/ch/admin/bag/covidcertificate/backend/verifier/ws/controller/VerificationRulesControllerV2.java @@ -60,6 +60,9 @@ public VerificationRulesControllerV2( ArrayNode verifierModes = (ArrayNode) rules.get("modeRules").get("verifierActiveModes"); removeModes(verifierModes, disabledVerificationModes); + ArrayNode walletModes = (ArrayNode) rules.get("modeRules").get("walletActiveModes"); + removeModes(walletModes, disabledVerificationModes); + this.verificationRules = mapper.treeToValue(rules, Map.class); this.valueSetDataService = valueSetDataService;