Skip to content

Commit

Permalink
removed permissions requirements for the workflows to allow users to …
Browse files Browse the repository at this point in the history
…create workflows
  • Loading branch information
alexandrubordei committed Aug 16, 2024
1 parent 94d8b7a commit e85f45c
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions pkg/workflows/cmd_workflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ var WorkflowCmds = []command.Command{
"format": c.FlagSet.String("format", command.NilDefaultStr, "The output format. Supported values are 'json','csv','yaml'. The default format is human readable."),
}
},
ExecuteFunc: workflowsListCmd,
Endpoint: configuration.ExtendedEndpoint,
AdminEndpoint: configuration.DeveloperEndpoint,
PermissionsRequired: []string{command.WORKFLOWS_READ},
ExecuteFunc: workflowsListCmd,
Endpoint: configuration.ExtendedEndpoint,
AdminEndpoint: configuration.DeveloperEndpoint,
},
{
Description: "Get workflow details.",
Expand All @@ -45,10 +44,9 @@ var WorkflowCmds = []command.Command{
"format": c.FlagSet.String("format", command.NilDefaultStr, "The output format. Supported values are 'json','csv','yaml'. The default format is human readable."),
}
},
ExecuteFunc: workflowGetCmd,
Endpoint: configuration.ExtendedEndpoint,
AdminEndpoint: configuration.DeveloperEndpoint,
PermissionsRequired: []string{command.WORKFLOWS_READ},
ExecuteFunc: workflowGetCmd,
Endpoint: configuration.ExtendedEndpoint,
AdminEndpoint: configuration.DeveloperEndpoint,
},
{
Description: "Create a workflow",
Expand All @@ -68,9 +66,8 @@ var WorkflowCmds = []command.Command{
"return_id": c.FlagSet.Bool("return-id", false, colors.Green("(Flag)")+" If set will print the ID of the created workflow. Useful for automating tasks."),
}
},
ExecuteFunc: workflowCreateCmd,
Endpoint: configuration.ExtendedEndpoint,
PermissionsRequired: []string{command.WORKFLOWS_WRITE},
ExecuteFunc: workflowCreateCmd,
Endpoint: configuration.ExtendedEndpoint,
},
{
Description: "Delete a stage from a workflow.",
Expand All @@ -85,10 +82,9 @@ var WorkflowCmds = []command.Command{
"autoconfirm": c.FlagSet.Bool("autoconfirm", false, colors.Green("(Flag)")+" If set it will assume action is confirmed"),
}
},
ExecuteFunc: workflowDeleteStageCmd,
Endpoint: configuration.ExtendedEndpoint,
AdminEndpoint: configuration.DeveloperEndpoint,
PermissionsRequired: []string{command.WORKFLOWS_WRITE},
ExecuteFunc: workflowDeleteStageCmd,
Endpoint: configuration.ExtendedEndpoint,
AdminEndpoint: configuration.DeveloperEndpoint,
},
}

Expand Down

0 comments on commit e85f45c

Please sign in to comment.