Commit 70e9b32f authored by Fabien Morin's avatar Fabien Morin

this is guard independant, so need to use is_permitted_worklist in case there

is no portal_type


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38865 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 81920cd9
...@@ -254,10 +254,10 @@ def DCWorkflowDefinition_getWorklistVariableMatchDict(self, info, ...@@ -254,10 +254,10 @@ def DCWorkflowDefinition_getWorklistVariableMatchDict(self, info,
variable_match['portal_type'] = list(portal_type_intersection) variable_match['portal_type'] = list(portal_type_intersection)
variable_match.setdefault('portal_type', portal_type_list) variable_match.setdefault('portal_type', portal_type_list)
is_permitted_worklist = 0
if len(variable_match.get('portal_type', [])): if len(variable_match.get('portal_type', [])):
pass continue
elif guard is None: is_permitted_worklist = 0
if guard is None:
is_permitted_worklist = 1 is_permitted_worklist = 1
elif (not check_guard) or \ elif (not check_guard) or \
Guard_checkWithoutRoles(guard, security_manager, self, portal): Guard_checkWithoutRoles(guard, security_manager, self, portal):
......
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