Merge branch 'master' into advanced-permissions-phase-1

Этот коммит содержится в:
George Goldberg
2018-02-19 11:19:39 +00:00
родитель 8891fa2a5e 30197584d5
Коммит f8289eb286
617 изменённых файлов: 23474 добавлений и 129290 удалений

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

@@ -129,7 +129,7 @@ func (a *App) SetLicense(license *model.License) bool {
}
a.licenseValue.Store((*model.License)(nil))
a.SetClientLicense(map[string]string{"IsLicensed": "false"})
a.clientLicenseValue.Store(map[string]string(nil))
return false
}
@@ -148,8 +148,10 @@ func (a *App) SetClientLicense(m map[string]string) {
}
func (a *App) ClientLicense() map[string]string {
clientLicense, _ := a.clientLicenseValue.Load().(map[string]string)
return clientLicense
if clientLicense, _ := a.clientLicenseValue.Load().(map[string]string); clientLicense != nil {
return clientLicense
}
return map[string]string{"IsLicensed": "false"}
}
func (a *App) RemoveLicense() *model.AppError {