Fix configuration setting

This commit is contained in:
JoramWilander
2017-04-10 14:47:38 -04:00
parent 9c3b96661b
commit 5c89fe1b8d
2 changed files with 2 additions and 3 deletions

View File

@@ -188,8 +188,8 @@ func TestOAuthGetAppsByUser(t *testing.T) {
utils.Cfg.ServiceSettings.EnableOAuthServiceProvider = true
if _, err := Client.GetOAuthAppsByUser(); err != nil {
t.Fatal("Should have passed.")
if _, err := Client.GetOAuthAppsByUser(); err == nil {
t.Fatal("Should have failed.")
}
*utils.Cfg.ServiceSettings.EnableOnlyAdminIntegrations = false

View File

@@ -369,7 +369,6 @@ func InitalizeRoles() {
PERMISSION_CREATE_DIRECT_CHANNEL.Id,
PERMISSION_CREATE_GROUP_CHANNEL.Id,
PERMISSION_PERMANENT_DELETE_USER.Id,
PERMISSION_MANAGE_OAUTH.Id,
},
}
BuiltInRoles[ROLE_SYSTEM_USER.Id] = ROLE_SYSTEM_USER