Skip to content

Commit

Permalink
Permit all
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Aug 20, 2024
1 parent 858c156 commit c871d06
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c871d06

Please sign in to comment.