diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index b2b83ec..e07bd66 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -51,7 +51,7 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest) if request.Caller == nil && request.Caller.URLS == nil && request.Caller.URLS[tools.BOOKING] == nil || request.Caller.URLS[tools.BOOKING][tools.POSTCHECK] == "" { return false, nil, []*WorkflowExecutions{}, errors.New("no caller defined") } - access := workflow.NewAccessor(nil) + access := workflow.NewAccessor(request) res, code, err := access.LoadOne(wfID) if code != 200 { return false, nil, []*WorkflowExecutions{}, errors.New("could not load the workflow with id: " + err.Error())