From 93254308599357fac665fce604f3506ee8a845fa Mon Sep 17 00:00:00 2001 From: Martin Kraft Date: Mon, 12 Feb 2018 12:49:29 -0500 Subject: XYZ-73: Removes EnableOnlyAdminIntegrations uses. (#8245) --- api4/post_test.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'api4') diff --git a/api4/post_test.go b/api4/post_test.go index 52326c4b0..dba3a1c2d 100644 --- a/api4/post_test.go +++ b/api4/post_test.go @@ -131,17 +131,14 @@ func testCreatePostWithOutgoingHook( channel := th.BasicChannel enableOutgoingHooks := th.App.Config().ServiceSettings.EnableOutgoingWebhooks - enableAdminOnlyHooks := th.App.Config().ServiceSettings.EnableOnlyAdminIntegrations allowedInternalConnections := *th.App.Config().ServiceSettings.AllowedUntrustedInternalConnections defer func() { th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableOutgoingWebhooks = enableOutgoingHooks }) - th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableOnlyAdminIntegrations = enableAdminOnlyHooks }) th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.AllowedUntrustedInternalConnections = &allowedInternalConnections }) }() th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableOutgoingWebhooks = true }) - th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableOnlyAdminIntegrations = true }) th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.AllowedUntrustedInternalConnections = "localhost 127.0.0.1" }) -- cgit v1.2.3-1-g7c22