From 1e7985a87a72bea9a308cf1506dacc828c6e2e1c Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 13 Sep 2016 12:42:48 -0400 Subject: Modifying permissions system. (#3897) --- api/oauth_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/oauth_test.go') diff --git a/api/oauth_test.go b/api/oauth_test.go index a54fbc2c3..da069aefe 100644 --- a/api/oauth_test.go +++ b/api/oauth_test.go @@ -161,6 +161,7 @@ func TestGetOAuthAppsByUser(t *testing.T) { } *utils.Cfg.ServiceSettings.EnableOnlyAdminIntegrations = false + utils.SetDefaultRolesBasedOnConfig() if result, err := Client.GetOAuthAppsByUser(); err != nil { t.Fatal(err) @@ -316,6 +317,7 @@ func TestOAuthDeleteApp(t *testing.T) { utils.Cfg.ServiceSettings.EnableOAuthServiceProvider = true *utils.Cfg.ServiceSettings.EnableOnlyAdminIntegrations = false + utils.SetDefaultRolesBasedOnConfig() app := &model.OAuthApp{Name: "TestApp5" + model.NewId(), Homepage: "https://nowhere.com", Description: "test", CallbackUrls: []string{"https://nowhere.com"}} -- cgit v1.2.3-1-g7c22