Skip to content
Snippets Groups Projects

Resolve "[Queue-2.0] CSV Import for TAs"

All threads resolved!
2 files
+ 12
0
Compare changes
  • Side-by-side
  • Inline

Files

@@ -304,6 +304,15 @@ public class EditionController {
return "redirect:/edition/" + editionId + "/participants";
}
/**
* Adds new participants to the course based on a CSV file that was uploaded by the user.
*
* @param editionId The id of the edition to which the users must be added.
* @param csv A CSV file containing both the netId and their role in the course.
* @param attributes Used to pass information when redirecting to Thymeleaf.
* @return A redirect to either the participants page when successfull, otherwise redirect ot
* create participants page
*/
@PostMapping("/edition/{editionId}/participants/import")
@PreAuthorize("@permissionService.canManageTeachers(#editionId)")
public String importParticipants(@PathVariable Long editionId,
Loading