Merge pull request #16980 from overleaf/jpa-join-project-remove-sl-2

[misc] joinProject: pass userId and anonymous access token in body 2/2

GitOrigin-RevId: b1a11941a6d9c7cc779769d1e97d3a0f03bed610
This commit is contained in:
Jakob Ackermann
2024-02-12 10:37:06 +00:00
committed by Copybot
parent 8523c21158
commit 385d3f9c1b
11 changed files with 18 additions and 112 deletions

View File

@@ -256,8 +256,6 @@ describe('EditorHttpController', function () {
userId: 'anonymous-user',
anonymousAccessToken: this.token,
}
this.req.query = { user_id: 'anonymous-user' }
this.req.headers = { 'x-sl-anonymous-access-token': this.token }
this.res.callback = done
this.AuthorizationManager.isRestrictedUser
.withArgs(null, 'readOnly', false, false)