Merge pull request #1956 from mattermost/plt-1779

PLT-1779 Add system-wide statistics page
Этот коммит содержится в:
Corey Hulen
2016-01-22 17:00:09 -06:00
родитель d352c5b64d 60a73ebabb
Коммит 1a0b12313b
17 изменённых файлов: 686 добавлений и 268 удалений

Просмотреть файл

@@ -55,6 +55,7 @@ func LoadLicense() {
if success, licenseStr := ValidateLicense(buf.Bytes()); success {
license := model.LicenseFromJson(strings.NewReader(licenseStr))
SetLicense(license)
return
}
l4g.Warn("No valid enterprise license found")
@@ -105,7 +106,7 @@ func ValidateLicense(signed []byte) (bool, string) {
}
// remove null terminator
if decoded[len(decoded)-1] == byte(0) {
for decoded[len(decoded)-1] == byte(0) {
decoded = decoded[:len(decoded)-1]
}