Commit 239a8396 authored by wenjie.zheng's avatar wenjie.zheng

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

parent ea180b06
......@@ -103,10 +103,7 @@ class Interaction(IdAsReferenceMixin('interaction_', "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