class ProjectTeamController {

    @PreAuthorize("hasPermission(#projectId, 'org.innovateuk.ifs.project.resource.ProjectCompositeId', 'ACCESS_PROJECT_TEAM_SECTION')")
    @PostMapping(value = "/{projectId}/team", params = "resend-invite")
    public String resendInvite(@PathVariable("projectId") final long projectId,
                               @RequestParam("resend-invite") final long inviteId,
                               HttpServletResponse response) {
        projectInviteHelper.resendInvite(inviteId, projectId, (project, projectInviteResource) -> projectTeamRestService.inviteProjectMember(project, projectInviteResource).toServiceResult());
        cookieFlashMessageFilter.setFlashMessage(response, "emailSent");
        return "redirect:/project/" + projectId + "/team";
    }

}