8000 feat: Add suspend/active user to cli by Emyrk · Pull Request #1422 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: Add suspend/active user to cli #1422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 16, 2022
Prev Previous commit
Next Next commit
Fix linting
  • Loading branch information
Emyrk committed May 13, 2022
commit 40bef92551d07066f14808073bce494f12953084
2 changes: 1 addition & 1 deletion coderd/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (api *api) putUserStatus(status database.UserStatus) func(rw http.ResponseW
apiKey := httpmw.APIKey(r)
if status == database.UserStatusSuspended && user.ID == apiKey.UserID {
httpapi.Write(rw, http.StatusBadRequest, httpapi.Response{
Message: fmt.Sprintf("You cannot suspend yourself"),
Message: "You cannot suspend yourself",
})
return
}
Expand Down
0