diff options
-rw-r--r-- | api/oauth_test.go | 4 | ||||
-rw-r--r-- | model/authorization.go | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/api/oauth_test.go b/api/oauth_test.go index 87a8f847c..5f55ae8f0 100644 --- a/api/oauth_test.go +++ b/api/oauth_test.go @@ -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 diff --git a/model/authorization.go b/model/authorization.go index b27fcaf77..384e4c865 100644 --- a/model/authorization.go +++ b/model/authorization.go @@ -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 |