def METHOD_NAME(req, dataset):
    """Validate HTTP token has access to the requested dataset."""
    user = 'user' in req.context and req.context['user'] or None
    # Check that this request includes the correct token
    if user != None and 'dataset:git' in user['scopes'] and user['dataset'] == dataset:
        return True
    else:
        return False