Skip to content

Commit 58a976f

Browse files
committed
feat: allow schedulers to call context put
1 parent 077b1c3 commit 58a976f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/insee/genesis/controller/rest/DataProcessingContextController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class DataProcessingContextController {
4646

4747
@Operation(summary = "Create or update a data processing context")
4848
@PutMapping(path = "/review")
49-
@PreAuthorize("hasRole('USER_BACK_OFFICE')")
49+
@PreAuthorize("hasAnyRole('USER_BACK_OFFICE','SCHEDULER')")
5050
public ResponseEntity<Object> saveContext(
5151
@Parameter(description = "Identifier of the partition", required = true) @RequestParam("partitionId") String partitionId,
5252
@Parameter(description = "Allow reviewing") @RequestParam(value = "withReview", defaultValue = "false") Boolean withReview

0 commit comments

Comments
 (0)