From 1fae1e52f90e3e0629bd7260d2f043b64334a54b Mon Sep 17 00:00:00 2001 From: Bogdan Kostov Date: Wed, 21 Aug 2024 16:48:44 +0200 Subject: [PATCH] Remove permit all from importRecordsJson --- .../java/cz/cvut/kbss/study/rest/PatientRecordController.java | 2 -- 1 file changed, 2 deletions(-) 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 38ecb665..64f453d3 100644 --- a/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java +++ b/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java @@ -23,7 +23,6 @@ import cz.cvut.kbss.study.service.security.SecurityUtils; 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; @@ -256,7 +255,6 @@ public String getFilename() { return responseEntity.getBody(); } - @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) {