workflows: look for existence of json content with private attribute (#36515)

This commit is contained in:
Frédéric Péters 2019-11-18 17:30:07 +01:00
parent e9771cc834
commit 0eb5415bee
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class HookDirectory(Directory):
else:
raise errors.AccessForbiddenError('insufficient roles')
if hasattr(get_request(), 'json'):
if hasattr(get_request(), '_json'):
workflow_data = {self.trigger.identifier: get_request().json}
self.formdata.update_workflow_data(workflow_data)
self.formdata.store()