Merge pull request #13427 from overleaf/em-td-websocket-invites

Fix disclosure of invites and invite tokens through the websocket

GitOrigin-RevId: cf4925f4faeaaa9202055b52f32e5a80f313946a
This commit is contained in:
Eric Mc Sween
2023-06-13 07:15:13 -04:00
committed by Copybot
parent 5e1700b97a
commit 6d931f0948
4 changed files with 65 additions and 86 deletions
@@ -25,11 +25,13 @@ describe('EditorHttpController', function () {
other_property: true,
},
members: [{ one: 1 }, { two: 2 }],
invites: [{ three: 3 }, { four: 4 }],
}
this.reducedProjectView = {
_id: this.projectView._id,
owner: { _id: this.projectView.owner._id },
members: [],
invites: [],
}
this.doc = { _id: new ObjectId(), name: 'excellent-original-idea.tex' }
this.file = { _id: new ObjectId() }