Merge pull request #19626 from overleaf/ii-invite-remove-unncecessary-fields
[web] Clean up props exposed to the /invite and /invites endpoints GitOrigin-RevId: dc4163e04d5785e141d5e322bfb0a626e67d637f
This commit is contained in:
@@ -141,16 +141,6 @@ module.exports = ProjectEditorHandler = {
|
||||
if (invites == null) {
|
||||
return []
|
||||
}
|
||||
return invites.map(invite =>
|
||||
_.pick(invite, [
|
||||
'_id',
|
||||
'createdAt',
|
||||
'email',
|
||||
'expires',
|
||||
'privileges',
|
||||
'projectId',
|
||||
'sendingUserId',
|
||||
])
|
||||
)
|
||||
return invites.map(invite => _.pick(invite, ['_id', 'email', 'privileges']))
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user