diff --git a/src/main/java/io/boomerang/controller/WorkflowController.java b/src/main/java/io/boomerang/controller/WorkflowController.java index ee0e4992..e129828b 100644 --- a/src/main/java/io/boomerang/controller/WorkflowController.java +++ b/src/main/java/io/boomerang/controller/WorkflowController.java @@ -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); }