class ProjectTeamController {

    @PostMapping(params = "resend-invite")
    @PreAuthorize("hasAnyAuthority('ifs_administrator', 'support')")
    @SecuredBySpring(value = "EDIT_PROJECT_TEAM", description = "IFS Admin and support users can edit project team.")
    public String resendInvite(@PathVariable long projectId,
                               @PathVariable long competitionId,
                               @RequestParam("resend-invite") long inviteId,
                               HttpServletResponse response) {
        projectInviteHelper.resendInvite(inviteId, projectId, (project, projectInviteResource) -> projectTeamRestService.inviteProjectMember(project, projectInviteResource).toServiceResult());
        cookieFlashMessageFilter.setFlashMessage(response, "emailSent");
        return format("redirect:/competition/%d/project/%d/team", competitionId, projectId);
    }

}