def ignore_errors(conn, fun=None, *args, **kwargs):
    if fun:
        with _ignore_errors(conn):
            return fun(*args, **kwargs)
    return _ignore_errors(conn)
A user with permission should be able to impersonate another user.
dataset/ETHPy150Open celery/kombu/kombu/common.py/ignore_errors--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/middleware/tests/test_impersonation.py/ImpersonationMiddlewareTest.test_process_request_admin_has_permission