From f89e7c6d543a82d6078c2ca0f892914d7976a6f5 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 5 Jul 2016 14:02:00 -0400 Subject: Sanitize personal information out of license for non system admin users (#3487) --- api/user.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'api/user.go') diff --git a/api/user.go b/api/user.go index bd718e956..2ffda1bc5 100644 --- a/api/user.go +++ b/api/user.go @@ -890,7 +890,11 @@ func getInitialLoad(c *Context, w http.ResponseWriter, r *http.Request) { } il.ClientCfg = utils.ClientCfg - il.LicenseCfg = utils.ClientLicense + if c.IsSystemAdmin() { + il.LicenseCfg = utils.ClientLicense + } else { + il.LicenseCfg = utils.GetSantizedClientLicense() + } w.Write([]byte(il.ToJson())) } -- cgit v1.2.3-1-g7c22