def _check_client_ip(req):
    """
    Is this client permitted to use the service?
    """
    client_ip = _get_client_ip(req)
    if client_ip in CFG_BATCHUPLOADER_WEB_ROBOT_RIGHTS.keys():
        return True
    return False
Example #2
0
def _check_client_ip(req):
    """
    Is this client permitted to use the service?
    """
    client_ip = _get_client_ip(req)
    if client_ip in CFG_BATCHUPLOADER_WEB_ROBOT_RIGHTS.keys():
        return True
    return False