From c5ea48aec9504644296af41a82fc2e2059fcf68e Mon Sep 17 00:00:00 2001 From: Ieva Date: Fri, 12 Jul 2024 13:12:21 +0300 Subject: [PATCH] [v11.1.x] Admin: Fixes an issue where user accounts could not be enabled (#90361) Fix: unable to enable user Co-authored-by: gonvee --- pkg/api/admin_users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/admin_users.go b/pkg/api/admin_users.go index 81721a2d596..f937096daa9 100644 --- a/pkg/api/admin_users.go +++ b/pkg/api/admin_users.go @@ -334,7 +334,7 @@ func (hs *HTTPServer) AdminEnableUser(c *contextmodel.ReqContext) response.Respo return response.Error(http.StatusInternalServerError, "Could not enable external user", nil) } - isDisabled := true + isDisabled := false if err := hs.userService.Update(c.Req.Context(), &user.UpdateUserCommand{UserID: userID, IsDisabled: &isDisabled}); err != nil { if errors.Is(err, user.ErrUserNotFound) { return response.Error(http.StatusNotFound, user.ErrUserNotFound.Error(), nil)