def remote_access():
    """ Return True if the current thread is providing remote access. """
    try:
        creds = threading.current_thread().credentials
    except __HOLE__:
        return False
    else:
        return creds.remote


# For some reason use of a class as a decorator doesn't count as coverage.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/rbac.py/remote_access