Commit 155a517c authored by wenjie.zheng's avatar wenjie.zheng

Transition.py: give Manager all rights to execute workflow method.

parent ec4e0105
......@@ -101,6 +101,8 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
self.guard = Guard()
if self.getRoleList() is not None:
self.guard.roles = self.getRoleList()
if self.guard.roles is not None and 'Manager' not in self.guard.roles:
self.guard.roles.append('Manager')
if self.getPermissionList() is not None:
self.guard.permissions = self.getPermissionList()
if self.getGroupList() is not None:
......
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