diff options
Diffstat (limited to 'api4/oauth_test.go')
-rw-r--r-- | api4/oauth_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api4/oauth_test.go b/api4/oauth_test.go index 8658e86e9..8dd602456 100644 --- a/api4/oauth_test.go +++ b/api4/oauth_test.go @@ -164,6 +164,13 @@ func TestUpdateOAuthApp(t *testing.T) { t.Fatal("IsTrusted should have updated") } + th.LoginBasic2() + updatedApp.CreatorId = th.BasicUser2.Id + _, resp = Client.UpdateOAuthApp(oapp) + CheckForbiddenStatus(t, resp) + + th.LoginBasic() + th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableOnlyAdminIntegrations = false }) th.App.SetDefaultRolesBasedOnConfig() _, resp = Client.UpdateOAuthApp(oapp) |