Commit 3c5b38c8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Never use the expression "if obj" whenever obj is not a simple type.

parent e0704c31
......@@ -75,7 +75,7 @@ context = getRealContext()\n
#Allow reference for person in relation with the credential request\n
if context.getPortalType() == "Credential Request":\n
related_person = context.getDestinationDecisionValue(portal_type="Person")\n
if related_person:\n
if related_person is not None:\n
if related_person.getReference() == value:\n
return True\n
\n
......
358
\ No newline at end of file
359
\ No newline at end of file
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