class CompetitionSetupInnovationLeadController {

    @PreAuthorize("hasPermission(#competitionId, 'org.innovateuk.ifs.competition.resource.CompetitionCompositeId', 'MANAGE_INNOVATION_LEAD')")
    @GetMapping("/{competitionId}/manage-innovation-leads/find")
    public String manageInnovationLead(@PathVariable(COMPETITION_ID_KEY) long competitionId,
                                       Model model) {

        CompetitionResource competition = competitionRestService.getCompetitionById(competitionId).getSuccess();

        if (!competitionSetupService.hasInitialDetailsBeenPreviouslySubmitted(competitionId)) {
            return "redirect:/competition/setup/" + competitionId;
        }

        model.addAttribute(MODEL, manageInnovationLeadsModelPopulator.populateModel(competition));

        return "competition/manage-innovation-leads-find";
    }

}