diff options
Diffstat (limited to 'api4/system.go')
-rw-r--r-- | api4/system.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/api4/system.go b/api4/system.go index 55be559bf..7e860ba76 100644 --- a/api4/system.go +++ b/api4/system.go @@ -5,6 +5,7 @@ package api4 import ( "net/http" + "strconv" l4g "github.com/alecthomas/log4go" "github.com/mattermost/platform/app" @@ -202,7 +203,14 @@ func getClientConfig(c *Context, w http.ResponseWriter, r *http.Request) { return } - w.Write([]byte(model.MapToJson(utils.ClientCfg))) + respCfg := map[string]string{} + for k, v := range utils.ClientCfg { + respCfg[k] = v + } + + respCfg["NoAccounts"] = strconv.FormatBool(app.IsFirstUserAccount()) + + w.Write([]byte(model.MapToJson(respCfg))) } func getClientLicense(c *Context, w http.ResponseWriter, r *http.Request) { |