ソースを参照

Merge pull request #3066 from overleaf/jel-log-admin-adds-email

Update user audit log when an admin adds email

GitOrigin-RevId: 758199e2f0f3501701b42bf359ce5ccd52cb3da0
Jessica Lawshe 6 年 前
コミット
6dbf37d408
1 ファイル変更2 行追加1 行削除
  1. 2 1
      services/web/app/src/Features/User/UserAuditLogHandler.js

+ 2 - 1
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:
  * 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
  * - operation: a string identifying the type of operation
  * - initiatorId: who performed the operation
  * - initiatorId: who performed the operation
+ * - ipAddress: the IP address of the initiator
  * - info: an object detailing what happened
  * - 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 = {}) {
 async function addEntry(userId, operation, initiatorId, ipAddress, info = {}) {
   const timestamp = new Date()
   const timestamp = new Date()