Commit daef2633 authored by wenjie.zheng's avatar wenjie.zheng

Transition.py: when generating guard, create an empty guard first.

parent 239a8396
......@@ -93,10 +93,7 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
def generateGuard(self):
if self.guard is None:
self.guard = Guard(permissions=self.getPermissionList(),
roles=self.getRoleList(),
groups=self.getGroupList(),
expr=Expression(self.getExpression()))
self.guard = Guard()
if self.getRoleList() is not None:
self.guard.roles = self.getRoleList()
......
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