def user_in_nosy_list(cnx, user, entity):
    """return true if the user is in the nosy list for the entity"""
    return bool(cnx.execute(
        'Any X WHERE X nosy_list U, U eid %(u)s, X eid %(x)s', {'u': user.
        eid, 'x': entity.eid}))
