Fix policy application in team edition. (#5771)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8568afe5b4
Коммит
91d430b2a3
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user