Fix policy application in team edition. (#5771)

Этот коммит содержится в:
George Goldberg
2017-03-15 19:32:02 +00:00
коммит произвёл GitHub
родитель 8568afe5b4
Коммит 91d430b2a3
8 изменённых файлов: 280 добавлений и 110 удалений

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

@@ -76,6 +76,8 @@ func SaveLicense(licenseBytes []byte) (*model.License, *model.AppError) {
return nil, model.NewLocAppError("addLicense", model.INVALID_LICENSE_ERROR, nil, "")
}
ReloadConfig()
InvalidateAllCaches()
return license, nil
@@ -93,6 +95,8 @@ func RemoveLicense() *model.AppError {
return result.Err
}
ReloadConfig()
InvalidateAllCaches()
return nil