'List an Organization\'s Projects
Return a list of projects bound to a organization.
:pparam string organization_slug: the slug of the organization for
which the projects should be listed.
:auth: required'

@attach_scenarios([list_organization_projects_scenario])
def get(self, request, organization):

    if (request.auth and (not request.user.is_authenticated())):
        if hasattr(request.auth, 'project'):
            team_list = [request.auth.project.team]
            queryset = queryset = Project.objects.filter(id=request.auth.project.id).select_related('team')
        elif (request.auth.organization is not None):
            org = request.auth.organization
            team_list = list(Team.objects.filter(organization=org))
            queryset = Project.objects.filter(team__in=team_list).select_related('team')
        else:
            return Response({'detail': 'Current    access    does    not    point    to    organization.'}, status=400)
    else:
        team_list = list(request.access.teams)
        queryset = Project.objects.filter(team__in=team_list).select_related('team')
    return self.paginate(request=request, queryset=queryset, order_by='slug', on_results=(lambda x: serialize(x, request.user, ProjectWithTeamSerializer())), paginator_cls=OffsetPaginator)
