Commit 48953b4f authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: fix the problem that permission_roles list is not been cleaned.

parent 19021db9
...@@ -190,7 +190,7 @@ class Workflow(XMLObject): ...@@ -190,7 +190,7 @@ class Workflow(XMLObject):
if modifyRolesForPermission(document, permission_roles, self.erp5_permission_roles[permission_roles]): if modifyRolesForPermission(document, permission_roles, self.erp5_permission_roles[permission_roles]):
changed = 1 changed = 1
### zwj: clean Permission Role list for next role mapping ### zwj: clean Permission Role list for next role mapping
del self.erp5_permission_roles[permission_roles] del self.erp5_permission_roles[permission_roles]
return changed return changed
def getRoleList(self): def getRoleList(self):
......
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