diff options
author | George Goldberg <george@gberg.me> | 2017-03-15 19:32:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-15 19:32:02 +0000 |
commit | 91d430b2a39a03b052cc103f73f44c68cbc96b2d (patch) | |
tree | da7c188407498aced674937c4802c8a9e848f280 /app/license.go | |
parent | 8568afe5b4fb4d26b14fbc0d21f088eaa490b314 (diff) | |
download | chat-91d430b2a39a03b052cc103f73f44c68cbc96b2d.tar.gz chat-91d430b2a39a03b052cc103f73f44c68cbc96b2d.tar.bz2 chat-91d430b2a39a03b052cc103f73f44c68cbc96b2d.zip |
Fix policy application in team edition. (#5771)
Diffstat (limited to 'app/license.go')
-rw-r--r-- | app/license.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/license.go b/app/license.go index 87b2d1b05..1efaf85d5 100644 --- a/app/license.go +++ b/app/license.go @@ -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 |