def METHOD_NAME(self, request):
    channel_revs = request.data.get("channel_revs", {})
    if channel_revs:
        # Filter to only the channels that the user has permissions to view.
        channel_ids = Channel.filter_view_queryset(Channel.objects.all(), request.user).filter(id__in=channel_revs.keys()).values_list("id", flat=True)
        channel_revs = {channel_id: channel_revs[channel_id] for channel_id in channel_ids}
    return channel_revs