mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Merge pull request #15001 from overleaf/em-invite-audit-logs
Project audit logs for invite operations GitOrigin-RevId: c2db4bc719f508c5bf33be2c59eddfb63fcdae25
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user