class ProjectTeamController {

    @PostMapping(params = "resend-partner-invite")
    @PreAuthorize("hasAuthority('project_finance')")
    @SecuredBySpring(value = "PROJECT_PARTNER_CHANGES", description = "Project finance can change the partner organisations.")
    public String resendPartnerInvite(@PathVariable long projectId,
                                      @PathVariable long competitionId,
                                      @RequestParam("resend-partner-invite") long inviteId,
                                      HttpServletResponse response) {
        projectPartnerInviteRestService.resendInvite(projectId, inviteId).getSuccess();
        cookieFlashMessageFilter.setFlashMessage(response, "emailSent");
        return format("redirect:/competition/%d/project/%d/team", competitionId, projectId);
    }

}