Skip to content

Commit

Permalink
Merge pull request #275 from boomerang-io/remove_user_validation
Browse files Browse the repository at this point in the history
remove validation
  • Loading branch information
amhudson authored Jun 6, 2023
2 parents 8b2e71c + edc835c commit 48490e2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ public WorkflowSummary duplicateWorkflow(@PathVariable String workFlowId,
public WorkflowSummary insertWorkflow(@RequestBody WorkflowSummary workflowSummaryEntity) {
if (workflowSummaryEntity.getFlowTeamId() != null) {
userValidationService.validateUserForTeam(workflowSummaryEntity.getFlowTeamId());
} else {
userValidationService.validateUserById(workflowSummaryEntity.getOwnerUserId());
}
}
workflowSummaryEntity.setStatus(WorkflowStatus.active);
return workflowService.saveWorkflow(workflowSummaryEntity);
}
Expand Down

0 comments on commit 48490e2

Please sign in to comment.