Commit 5b0bb86e authored by wenjie.zheng's avatar wenjie.zheng

Transition.py: give Owner full right tu execute workflow method.

parent c6506bea
......@@ -101,6 +101,11 @@ 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 'Owner' not in self.guard.roles:
# Owner(Zope) should have all rights to debug, why not?
self.guard.roles.append('Owner')
if not self.guard.roles:
self.guard.roles = ['Owner']
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