From bad3e72761aa4c7da657f97610a4cbc078538abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Tue, 29 Nov 2005 10:16:57 +0000 Subject: [PATCH] On the workflow define permission, 'acquire permission settings' is the default value git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4414 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/ZopePatch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/product/ERP5Type/ZopePatch.py b/product/ERP5Type/ZopePatch.py index e0829667a6..484b1c5d54 100755 --- a/product/ERP5Type/ZopePatch.py +++ b/product/ERP5Type/ZopePatch.py @@ -660,7 +660,6 @@ def updateRoleMappingsFor(self, ob): other_sdef = other_workflow._getWorkflowStateOf(ob) if other_sdef is not None and other_sdef.permission_roles is not None: other_data_list.append((other_workflow,other_sdef)) - # Be carefull, permissions_roles should not change # from list to tuple or vice-versa. (in modifyRolesForPermission, # list means acquire roles, tuple means do not acquire) @@ -679,7 +678,7 @@ def updateRoleMappingsFor(self, ob): for other_workflow,other_sdef in other_data_list: if p in other_workflow.permissions: for role in roles: - other_roles = other_sdef.permission_roles.get(p, ()) + other_roles = other_sdef.permission_roles.get(p, []) if type(other_roles) is type(()) : role_type = 'tuple' if role not in other_roles : -- 2.30.9