Commit 19253774 authored by Vincent Pelletier's avatar Vincent Pelletier

Be consistent with CMFActivity: use unrestrictedTraverse to get script's...

Be consistent with CMFActivity: use unrestrictedTraverse to get script's context. Security checks will still happen when script is executed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20440 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1025b7b2
......@@ -309,7 +309,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
security.declarePrivate('activeScript')
def activeScript(self, script_name, ob_url, status, tdef_id):
script = self.scripts[script_name]
ob = self.restrictedTraverse(ob_url)
ob = self.unrestrictedTraverse(ob_url)
tdef = self.interactions.get(tdef_id)
sci = StateChangeInfo(
ob, self, status, tdef, None, None, None)
......
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