'List a Team\'s Projects
Return a list of projects bound to a team.
:pparam string organization_slug: the slug of the organization the
team belongs to.
:pparam string team_slug: the slug of the team to list the projects of.
:auth: required'

@attach_scenarios([list_team_projects_scenario])
def get(self, request, team):

    if request.user.is_authenticated():
        results = list(Project.objects.get_for_user(team=team, user=request.user))
    else:
        results = list(Project.objects.filter(team=team, status=ProjectStatus.VISIBLE))
    return Response(serialize(results, request.user))
