From bb188dc6b987c35920b82e7af00bc53356f61fc7 Mon Sep 17 00:00:00 2001 From: y72wvh Date: Mon, 8 Jul 2024 16:14:49 +0200 Subject: [PATCH] fix: add preauthorize --- .../contact/controller/AddressController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/fr/insee/survey/datacollectionmanagement/contact/controller/AddressController.java b/src/main/java/fr/insee/survey/datacollectionmanagement/contact/controller/AddressController.java index 701a297c..67da2c4c 100644 --- a/src/main/java/fr/insee/survey/datacollectionmanagement/contact/controller/AddressController.java +++ b/src/main/java/fr/insee/survey/datacollectionmanagement/contact/controller/AddressController.java @@ -29,6 +29,7 @@ import java.util.List; @RestController +@PreAuthorize(AuthorityPrivileges.HAS_MANAGEMENT_PRIVILEGES) @Tag(name = "1 - Contacts", description = "Enpoints to create, update, delete and find contacts") @Slf4j @RequiredArgsConstructor