Fix execution deletion in case of insecure context

Fix bad parametrization.

Change-Id: I9a5db2a39ca18b48b117a53eee509f5d6f19a5c9
Closes-Bug:https://bugs.launchpad.net/mistral/+bug/1837272
This commit is contained in:
Andras Kovi 2019-07-20 08:02:20 +02:00
parent 258575c21d
commit 4539a0a0e4
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ def _get_all_direct_subworkflows(wf_ex_id):
model = models.WorkflowExecution
insecure = context.ctx().is_admin
if insecure:
query = b.model_query(model, columns=['id'])
query = b.model_query(model, [model.id])
else:
query = _secure_query(model, model.id)
query = query.join(