Commit 3765f14a authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: ues keys() to get permissions' names.

parent 930c7aa9
...@@ -189,7 +189,7 @@ class Workflow(XMLObject): ...@@ -189,7 +189,7 @@ class Workflow(XMLObject):
else: else:
erp5_permission_roles.update({permission : role}) erp5_permission_roles.update({permission : role})
### zwj: update role list to permission ### zwj: update role list to permission
for permission_roles in erp5_permission_roles: for permission_roles in erp5_permission_roles.keys():
if modifyRolesForPermission(document, permission_roles, erp5_permission_roles[permission_roles]): if modifyRolesForPermission(document, permission_roles, erp5_permission_roles[permission_roles]):
changed = 1 changed = 1
......
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