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): ...@@ -118,9 +118,7 @@ class AcknowledgementTool(BaseTool):
portal = self.getPortalObject() portal = self.getPortalObject()
person_value = portal.ERP5Site_getAuthenticatedMemberPersonValue( person_value = portal.ERP5Site_getAuthenticatedMemberPersonValue(
user_name=user_name) user_name=user_name)
if person_value is None: if person_value is not None:
raise ValueError('No user found')
else:
now = DateTime() now = DateTime()
# First look at all event that define the current user as destination # First look at all event that define the current user as destination
all_document_list = [x.getObject() for x in \ 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