From c871d06c08093ec34f4da9e9261ac8b66e93937a Mon Sep 17 00:00:00 2001 From: Miroslav Blasko Date: Tue, 23 Jul 2024 11:27:08 +0200 Subject: [PATCH] Permit all --- .../java/cz/cvut/kbss/study/rest/PatientRecordController.java | 2 ++ 1 file changed, 2 insertions(+) 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 794cb35e..36edd18a 100644 --- a/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java +++ b/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java @@ -22,6 +22,7 @@ import cz.cvut.kbss.study.service.UserService; import cz.cvut.kbss.study.util.ConfigParam; import cz.cvut.kbss.study.util.Constants; +import jakarta.annotation.security.PermitAll; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import org.springframework.context.ApplicationEventPublisher; @@ -252,6 +253,7 @@ public String getFilename() { return responseEntity.getBody(); } + @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) {