Commit 3c5837e6 authored by wenjie.zheng's avatar wenjie.zheng

InteractionWorkflow.py: fix _checkTransitionGuard.

parent 75bc2245
......@@ -172,13 +172,7 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
if isTempDocument is not None:
if isTempDocument():
return 0
guard = tdef.getGuard()
if guard is None:
return 1
if guard.check(getSecurityManager(), self, document, **kw):
return 1
return 0
return Workflow._checkTransitionGuard(self, tdef, document, **kw)
security.declarePrivate('getValidRoleList')
def getValidRoleList(self):
......
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