class ProjectTeamController {

    @PostMapping(params = "remove-invite")
    @PreAuthorize("hasAnyAuthority('ifs_administrator', 'support')")
    @SecuredBySpring(value = "EDIT_PROJECT_TEAM", description = "IFS Admin and support users can edit project team.")
    public String removeInvite(@PathVariable long projectId,
                               @PathVariable long competitionId,
                               @RequestParam("remove-invite") long inviteId) {
        projectTeamRestService.removeInvite(projectId, inviteId).getSuccess();
        return format("redirect:/competition/%d/project/%d/team", competitionId, projectId);
    }

}