Skip to content

Commit

Permalink
chore!: Improve permissions check on oauth-apps endpoints (#32338)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcos Spessatto Defendi <marcos.defendi@rocket.chat>
  • Loading branch information
matheusbsilva137 and MarcosSpessatto committed Oct 8, 2024
1 parent d1c5a28 commit 6e7f44f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apps/meteor/tests/end-to-end/api/oauthapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ describe('[OAuthApps]', () => {
return request
.get(api('oauth-apps.get'))
.query({ _id: '{ "$ne": "" }' })
.set(credentials)
.expect(400)
.expect((res) => {
expect(res.body).to.have.property('success', false);
Expand All @@ -127,12 +126,6 @@ describe('[OAuthApps]', () => {
it('should return an error when the user does not have the necessary permission', async () => {
await updatePermission('manage-oauth-apps', []);

await request
.post(api('oauth-apps.create'))
.set(credentials)
.send({
name: 'error',
redirectUri: 'error',
active: false,
})
.expect('Content-Type', 'application/json')
Expand Down

0 comments on commit 6e7f44f

Please sign in to comment.