From b972138fea866f459751b7456c918121a71787f1 Mon Sep 17 00:00:00 2001 From: Miroslav Blasko Date: Tue, 23 Jul 2024 12:00:01 +0200 Subject: [PATCH] Permit all 2 --- .../java/cz/cvut/kbss/study/rest/PatientRecordController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java b/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java index 36edd18a..a075cd7d 100644 --- a/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java +++ b/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java @@ -253,7 +253,7 @@ public String getFilename() { return responseEntity.getBody(); } - @PermitAll + @PreAuthorize("permitAll()") @PostMapping(value = "/import/json", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) public RecordImportResult importRecordsJson(@RequestPart("file") MultipartFile file, @RequestParam(name = "phase", required = false) String phase) {