diff --git a/product/ERP5Type/ERP5Type.py b/product/ERP5Type/ERP5Type.py index 7a04e383abebf2135b236438f75bd899d69da79d..6015de021c6fe8979a219aa6cc9ff3b938651725 100644 --- a/product/ERP5Type/ERP5Type.py +++ b/product/ERP5Type/ERP5Type.py @@ -273,6 +273,12 @@ class ERP5TypeInformation( FactoryTypeInformation, RoleProviderBase, Translation """ #FIXME We should check the type of the acl_users folder instead of # checking which product is installed. + if user_name is None: + # First try to guess from the owner + try: + user_name = object.getOwnerInfo()['id'] + except AttributeError: + pass if user_name is None: if ERP5UserManager is not None: # We use id for roles in ERP5Security