From 787d7dda37a83314635a5bebd6a38e347b454ea7 Mon Sep 17 00:00:00 2001
From: Blandine Bajard <83599148+BlandineBajard@users.noreply.github.com>
Date: Mon, 7 Mar 2022 16:28:32 +0100
Subject: [PATCH] decomment des pre autorize
---
.../java/fr/organizee/controller/MenuController.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/fr/organizee/controller/MenuController.java b/src/main/java/fr/organizee/controller/MenuController.java
index 67dd0b9..bf8d382 100644
--- a/src/main/java/fr/organizee/controller/MenuController.java
+++ b/src/main/java/fr/organizee/controller/MenuController.java
@@ -23,7 +23,7 @@ public class MenuController {
//Récupère les infos d'un menu par son ID
@GetMapping(value = "/{id}")
- //@PreAuthorize("hasRole('ROLE_PARENT') or hasRole('ROLE_ENFANT')")
+ @PreAuthorize("hasRole('ROLE_PARENT') or hasRole('ROLE_ENFANT')")
public ResponseEntity> findById(@PathVariable int id){
Optional