@@ -46,7 +46,7 @@ public EditedResponseController(EditedPreviousResponseApiPort editedPreviousResp
4646
4747 @ Operation (summary = "Get edited variables (edited and previous)" )
4848 @ GetMapping (path = "/" )
49- @ PreAuthorize ("hasRole('USER_KRAFTWERK ')" )
49+ @ PreAuthorize ("hasRole('USER_PLATINE ')" )
5050 public ResponseEntity <Object > getEditedResponses (
5151 @ RequestParam ("questionnaireId" ) String questionnaireId ,
5252 @ RequestParam ("interrogationId" ) String interrogationId
@@ -58,7 +58,7 @@ public ResponseEntity<Object> getEditedResponses(
5858
5959 @ Operation (summary = "Add edited previous json file" )
6060 @ PostMapping (path = "previous/json" )
61- @ PreAuthorize ("hasRole('USER_KRAFTWERK ')" )
61+ @ PreAuthorize ("hasAnyRole('USER_PLATINE','SCHEDULER ')" )
6262 public ResponseEntity <Object > readEditedPreviousJson (
6363 @ RequestParam ("questionnaireId" ) String questionnaireId ,
6464 @ RequestParam ("mode" ) Mode mode ,
@@ -85,7 +85,7 @@ public ResponseEntity<Object> readEditedPreviousJson(
8585
8686 @ Operation (summary = "Add edited external json file" )
8787 @ PostMapping (path = "/external/json" )
88- @ PreAuthorize ("hasRole('USER_KRAFTWERK ')" )
88+ @ PreAuthorize ("hasRole('USER_PLATINE','SCHEDULER ')" )
8989 public ResponseEntity <Object > readEditedExternalJson (
9090 @ RequestParam ("questionnaireId" ) String questionnaireId ,
9191 @ RequestParam ("mode" ) Mode mode ,
0 commit comments