'GET /api/embargo/v1/course_access/
Arguments:
request (HttpRequest)
Return:
Response: True or False depending on the check.'

def get(self, request):

    course_ids = request.GET.getlist('course_ids', [])
    username = request.GET.get('user')
    user_ip_address = request.GET.get('ip_address')
    try:
        user = User.objects.get(username=username)
    except User.DoesNotExist:
        user = None
    response = {'access': True}
    if (course_ids and user and user_ip_address):
        for course_id in course_ids:
            try:
                if (not check_course_access(CourseKey.from_string(course_id), user, user_ip_address)):
                    response['access'] = False
                    break
            except InvalidKeyError:
                raise ValidationError('Invalid    course_ids')
    else:
        raise ValidationError('Missing    parameters')
    return Response(response)
