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

Variable.py: fix variable guard expression.

parent edfc7738
...@@ -78,7 +78,7 @@ class Variable(IdAsReferenceMixin("variable_", "prefix"), XMLObject): ...@@ -78,7 +78,7 @@ class Variable(IdAsReferenceMixin("variable_", "prefix"), XMLObject):
self.info_guard = Guard(permissions=self.getPermissionList(), self.info_guard = Guard(permissions=self.getPermissionList(),
roles=self.getRoleList(), roles=self.getRoleList(),
groups=self.getGroupList(), groups=self.getGroupList(),
expr=self.getExpression()) expr=Expression(self.getExpression()))
if self.getRoleList() is not None: if self.getRoleList() is not None:
self.info_guard.roles = self.getRoleList() self.info_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