From 59bc495b56f66bfafc2514f7b40294042dcec9b1 Mon Sep 17 00:00:00 2001 From: sauls8t Date: Mon, 4 Jun 2018 14:39:38 +0100 Subject: [PATCH] Set analytics permisison during on-board process --- core/database/endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database/endpoint.go b/core/database/endpoint.go index a5457366..27d22cd6 100644 --- a/core/database/endpoint.go +++ b/core/database/endpoint.go @@ -153,7 +153,7 @@ func setupAccount(rt *env.Runtime, completion onboardRequest, serial string) (er // Link user to organization. accountID := uniqueid.Generate() - sql = fmt.Sprintf("insert into account (refid, userid, orgid, `admin`, editor) values (\"%s\", \"%s\", \"%s\",1, 1)", accountID, userID, orgID) + sql = fmt.Sprintf("insert into account (refid, userid, orgid, `admin`, editor, users, analytics) values (\"%s\", \"%s\", \"%s\", 1, 1, 1, 1)", accountID, userID, orgID) _, err = runSQL(rt, sql) if err != nil {