Commit ce7c055f authored by Romain Courteaud's avatar Romain Courteaud

slapos_jio: do not crash when using a zope user

parent 7389ccd0
......@@ -47,6 +47,9 @@ if portal_type in ["Instance Tree Module", "Instance Tree", "Person"] and \
portal.portal_preferences.getPreferredCloudContractEnabled():
person = portal.portal_membership.getAuthenticatedMember().getUserValue()
if person is None:
contract = None
else:
contract = portal.portal_catalog.getResultValue(
portal_type="Cloud Contract",
default_destination_section_uid=person.getUid(),
......
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