Commit 8115611a authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: do not accept a None guard.

parent d6e5356e
......@@ -204,7 +204,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
def _checkTransitionGuard(self, tdef, document, **kw):
guard = tdef.getGuard()
if guard is None:
return 1
return 0
if guard.check(getSecurityManager(), self, document, **kw):
return 1
return 0
......
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