[Erp5-report] r38865 fabien - /erp5/trunk/products/ERP5Type/patches/DCWorkflow.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 4 14:09:18 CEST 2010
Author: fabien
Date: Mon Oct 4 14:09:16 2010
New Revision: 38865
URL: http://svn.erp5.org?rev=38865&view=rev
Log:
this is guard independant, so need to use is_permitted_worklist in case there
is no portal_type
Modified:
erp5/trunk/products/ERP5Type/patches/DCWorkflow.py
Modified: erp5/trunk/products/ERP5Type/patches/DCWorkflow.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/DCWorkflow.py?rev=38865&r1=38864&r2=38865&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/DCWorkflow.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/patches/DCWorkflow.py [utf8] Mon Oct 4 14:09:16 2010
@@ -254,10 +254,10 @@ def DCWorkflowDefinition_getWorklistVari
variable_match['portal_type'] = list(portal_type_intersection)
variable_match.setdefault('portal_type', portal_type_list)
- is_permitted_worklist = 0
if len(variable_match.get('portal_type', [])):
- pass
- elif guard is None:
+ continue
+ is_permitted_worklist = 0
+ if guard is None:
is_permitted_worklist = 1
elif (not check_guard) or \
Guard_checkWithoutRoles(guard, security_manager, self, portal):
More information about the Erp5-report
mailing list