diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-02-03 15:17:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-03 15:17:34 -0500 |
commit | 7ff2aef7facdeb025a1651ef411fceb3d81932c1 (patch) | |
tree | 7ea2f7b89e4b4c1acf3ca021377b0166089ba397 /api4/channel_test.go | |
parent | 948b557453550646ad3213cb4144055eb7db0d69 (diff) | |
download | chat-7ff2aef7facdeb025a1651ef411fceb3d81932c1.tar.gz chat-7ff2aef7facdeb025a1651ef411fceb3d81932c1.tar.bz2 chat-7ff2aef7facdeb025a1651ef411fceb3d81932c1.zip |
Implement GET /users endpoint for APIv4 (#5277)
Diffstat (limited to 'api4/channel_test.go')
-rw-r--r-- | api4/channel_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/api4/channel_test.go b/api4/channel_test.go index 5123d7730..237d57f01 100644 --- a/api4/channel_test.go +++ b/api4/channel_test.go @@ -77,17 +77,17 @@ func TestCreateChannel(t *testing.T) { // Check permissions with policy config changes isLicensed := utils.IsLicensed license := utils.License - restrictPublicChannel := *utils.Cfg.TeamSettings.RestrictPublicChannelManagement - restrictPrivateChannel := *utils.Cfg.TeamSettings.RestrictPrivateChannelManagement + restrictPublicChannel := *utils.Cfg.TeamSettings.RestrictPublicChannelCreation + restrictPrivateChannel := *utils.Cfg.TeamSettings.RestrictPrivateChannelCreation defer func() { - *utils.Cfg.TeamSettings.RestrictPublicChannelManagement = restrictPublicChannel - *utils.Cfg.TeamSettings.RestrictPrivateChannelManagement = restrictPrivateChannel + *utils.Cfg.TeamSettings.RestrictPublicChannelCreation = restrictPublicChannel + *utils.Cfg.TeamSettings.RestrictPrivateChannelCreation = restrictPrivateChannel utils.IsLicensed = isLicensed utils.License = license utils.SetDefaultRolesBasedOnConfig() }() - *utils.Cfg.TeamSettings.RestrictPublicChannelManagement = model.PERMISSIONS_ALL - *utils.Cfg.TeamSettings.RestrictPrivateChannelManagement = model.PERMISSIONS_ALL + *utils.Cfg.TeamSettings.RestrictPublicChannelCreation = model.PERMISSIONS_ALL + *utils.Cfg.TeamSettings.RestrictPrivateChannelCreation = model.PERMISSIONS_ALL utils.SetDefaultRolesBasedOnConfig() utils.IsLicensed = true utils.License = &model.License{Features: &model.Features{}} |