Merge pull request #15001 from overleaf/em-invite-audit-logs

Project audit logs for invite operations

GitOrigin-RevId: c2db4bc719f508c5bf33be2c59eddfb63fcdae25
This commit is contained in:
Eric Mc Sween
2023-10-10 08:10:39 -04:00
committed by Copybot
parent 03aaabd5cb
commit 33765cd650
10 changed files with 437 additions and 389 deletions

View File

@@ -314,10 +314,16 @@ describe('ProjectController', function () {
}
this.res.sendStatus = code => {
this.ProjectAuditLogHandler.addEntry
.calledWith(this.project_id, 'toggle-access-level', this.user._id, {
publicAccessLevel: 'readOnly',
status: 'OK',
})
.calledWith(
this.project_id,
'toggle-access-level',
this.user._id,
this.req.ip,
{
publicAccessLevel: 'readOnly',
status: 'OK',
}
)
.should.equal(true)
done()
}