mirror of https://github.com/coder/coder.git
fix: remove orphan rbac warning message (#6979)
The request will fail if the user doesn't have permissions, so it seems useless to output this.
This commit is contained in:
parent
55c0b26977
commit
4ee01dc95c
|
@ -37,14 +37,6 @@ func (r *RootCmd) deleteWorkspace() *clibase.Cmd {
|
|||
}
|
||||
|
||||
var state []byte
|
||||
|
||||
if orphan {
|
||||
cliui.Warn(
|
||||
inv.Stderr,
|
||||
"Orphaning workspace requires template edit permission",
|
||||
)
|
||||
}
|
||||
|
||||
build, err := client.CreateWorkspaceBuild(inv.Context(), workspace.ID, codersdk.CreateWorkspaceBuildRequest{
|
||||
Transition: codersdk.WorkspaceTransitionDelete,
|
||||
ProvisionerState: state,
|
||||
|
|
Loading…
Reference in New Issue