Commit dcd24bff authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: when workflow managed role list is not defined, return an empty...

Workflow.py: when workflow managed role list is not defined, return an empty tuple to variable_match instead of None.
parent 4d3bcb14
......@@ -403,7 +403,11 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
elif (not check_guard) or \
Guard_checkWithoutRoles(guard, security_manager, self, portal):
is_permitted_worklist = 1
variable_match[SECURITY_PARAMETER_ID] = worklist_definition.getRoleList()
workflow_role_list = worklist_definition.getRoleList()
if workflow_role_list is not None:
variable_match[SECURITY_PARAMETER_ID] = workflow_role_list
else:
variable_match[SECURITY_PARAMETER_ID] = ()
if is_permitted_worklist:
fmt_data = TemplateDict()
......
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