Commit e305f0aa authored by Julien Muchembled's avatar Julien Muchembled

Acknowledgement: fix global site error when not logged with an ERP5 person

parent df9d6990
......@@ -118,9 +118,7 @@ class AcknowledgementTool(BaseTool):
portal = self.getPortalObject()
person_value = portal.ERP5Site_getAuthenticatedMemberPersonValue(
user_name=user_name)
if person_value is None:
raise ValueError('No user found')
else:
if person_value is not None:
now = DateTime()
# First look at all event that define the current user as destination
all_document_list = [x.getObject() for x in \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment