Do not call app() to get access to acl_users.
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.
Showing
Please register or sign in to comment