Skip to content

Commit

Permalink
fix(api): run from hook uservice (#4016)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored and bnjjj committed Mar 11, 2019
1 parent a8527cd commit 13112b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/api/workflow_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ func (api *API) postWorkflowRunHandler() service.Handler {
}

// Check node permission
if !permission.AccessToWorkflowNode(wf, &wf.WorkflowData.Node, u, permission.PermissionReadExecute) {
if getService(ctx) == nil && !permission.AccessToWorkflowNode(wf, &wf.WorkflowData.Node, u, permission.PermissionReadExecute) {
return sdk.WrapError(sdk.ErrNoPermExecution, "not enough right on node %s", wf.WorkflowData.Node.Name)
}

Expand Down

0 comments on commit 13112b2

Please sign in to comment.