• Vincent Pelletier's avatar
    Do not call app() to get access to acl_users. · 6fc3a10f
    Vincent Pelletier authored
    app() creates a new transactional connection to ZODB, which triggers
    scary (although innocuous in this case) connection pool warnings.
    Instead, use getSite provided in ERP5 product and filled when
    traversing site's portal. Retrieved acl_users object is different, but
    this should not matter.
    Also, to prevent import loop and to keep this change minimal, do a
    local import.
    6fc3a10f
UnrestrictedMethod.py 4.54 KB