class ProjectTeamController {

    @PreAuthorize("hasPermission(#projectId, 'org.innovateuk.ifs.project.resource.ProjectCompositeId', 'ACCESS_PROJECT_TEAM_SECTION')")
    @PostMapping(value = "/{projectId}/team", params = "remove-invite")
    public String removeInvite(@PathVariable("projectId") final long projectId,
                               @RequestParam("remove-invite") final long inviteId) {
        projectTeamRestService.removeInvite(projectId, inviteId).getSuccess();
        return "redirect:/project/" + projectId + "/team";
    }

}