Sanitize personal information out of license for non system admin users (#3487)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
8b918efd3f
Коммит
f89e7c6d54
@@ -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()))
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user