class ProjectTeamController {

    @PostMapping(params = "add-team-member")
    @PreAuthorize("hasAnyAuthority('ifs_administrator', 'support')")
    @SecuredBySpring(value = "EDIT_PROJECT_TEAM", description = "IFS Admin and support users can edit project team.")
    public String openAddTeamMemberForm(@ModelAttribute(value = "form") ProjectTeamForm form,
                                        BindingResult bindingResult,
                                        @PathVariable long projectId,
                                        @PathVariable long competitionId,
                                        @RequestParam("add-team-member") long organisationId,
                                        Model model,
                                        UserResource loggedInUser) {
        model.addAttribute("model", projectTeamPopulator.populate(projectId, loggedInUser)
                .openAddTeamMemberForm(organisationId));
        return "projectteam/project-team";
    }

}