'List a project\'s saved searches
Retrieve a list of saved searches for a given project.
{method} {path}'

def get(self, request, project):

    if request.access.has_scope('project:write'):
        results = list(SavedSearch.objects.filter(project=project, owner__isnull=True).order_by('name'))
    else:
        results = list(SavedSearch.objects.filter((Q(owner=request.user) | Q(owner__isnull=True)), project=project).order_by('name'))
    return Response(serialize(results, request.user))
