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) {