def filter_queryset(self, request, queryset, view):
        """
        Filter out any artifacts which the requesting user does not have permission to view.
        """
        if request.user.is_superuser:
            return queryset
        return queryset.filter(status__user=request.user)
def filter_queryset ( self , request , queryset , view ) : if request . user . is_superuser : return queryset return queryset . filter ( status__user = request . user )
Filter out any artifacts which the requesting user does not have permission to view.