Skip to content

Commit

Permalink
Remove permit all from importRecordsJson
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Aug 21, 2024
1 parent 8551100 commit 1fae1e5
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1fae1e5

Please sign in to comment.