diff --git a/integrations/server_test.go b/integrations/server_test.go index b7e3fc9919..3a03d487cd 100644 --- a/integrations/server_test.go +++ b/integrations/server_test.go @@ -401,7 +401,7 @@ func TestServer(t *testing.T) { body: ` { "code": 401, - "message": "User does not have authorization required to set SuperAdmin status" + "message": "User does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/chronograf/issues/2601 for more information." }`, }, }, diff --git a/server/users.go b/server/users.go index 7202dbff35..10c57a7b04 100644 --- a/server/users.go +++ b/server/users.go @@ -324,7 +324,7 @@ func setSuperAdmin(ctx context.Context, req userRequest, user *chronograf.User) } else if !isSuperAdmin && (user.SuperAdmin != req.SuperAdmin) { // If req.SuperAdmin has been set, and the request was not made with the SuperAdmin // context, return error - return fmt.Errorf("User does not have authorization required to set SuperAdmin status") + return fmt.Errorf("User does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/chronograf/issues/2601 for more information.") } return nil diff --git a/server/users_test.go b/server/users_test.go index 8f9a26970e..ddf6f322b0 100644 --- a/server/users_test.go +++ b/server/users_test.go @@ -334,7 +334,7 @@ func TestService_NewUser(t *testing.T) { }, wantStatus: http.StatusUnauthorized, wantContentType: "application/json", - wantBody: `{"code":401,"message":"User does not have authorization required to set SuperAdmin status"}`, + wantBody: `{"code":401,"message":"User does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/chronograf/issues/2601 for more information."}`, }, { name: "Create a new SuperAdmin User - as superadmin", @@ -900,7 +900,7 @@ func TestService_UpdateUser(t *testing.T) { id: "1336", wantStatus: http.StatusUnauthorized, wantContentType: "application/json", - wantBody: `{"code":401,"message":"User does not have authorization required to set SuperAdmin status"}`, + wantBody: `{"code":401,"message":"User does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/chronograf/issues/2601 for more information."}`, }, { name: "Update a Chronograf user to super admin - with super admin context",