From 6dbf37d40805309698de949e8c0b0ba578e9f92f Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Mon, 10 Aug 2020 08:58:01 -0500 Subject: [PATCH] Merge pull request #3066 from overleaf/jel-log-admin-adds-email Update user audit log when an admin adds email GitOrigin-RevId: 758199e2f0f3501701b42bf359ce5ccd52cb3da0 --- services/web/app/src/Features/User/UserAuditLogHandler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/Features/User/UserAuditLogHandler.js b/services/web/app/src/Features/User/UserAuditLogHandler.js index 68646f79c7..2ba346d69e 100644 --- a/services/web/app/src/Features/User/UserAuditLogHandler.js +++ b/services/web/app/src/Features/User/UserAuditLogHandler.js @@ -8,10 +8,11 @@ const MAX_AUDIT_LOG_ENTRIES = 200 * * The entry should include at least the following fields: * + * - userId: the user on behalf of whom the operation was performed * - operation: a string identifying the type of operation * - initiatorId: who performed the operation + * - ipAddress: the IP address of the initiator * - info: an object detailing what happened - * - userId: the user on behalf of whom the operation was performed */ async function addEntry(userId, operation, initiatorId, ipAddress, info = {}) { const timestamp = new Date()