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:
parent
258575c21d
commit
4539a0a0e4
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue