Merge pull request #1374 from sharelatex/as-fix-dash-user-fetch

Include owners email in user fetch to show on dashboard if needed

GitOrigin-RevId: 7175700f77501723f48763b9ee9397c0448d4109
This commit is contained in:
James Allen 2019-01-09 16:49:23 +00:00 committed by sharelatex
parent 7ee0dcbd7c
commit ea415ea639

View file

@ -466,7 +466,7 @@ module.exports = ProjectController =
for user_id, _ of users
do (user_id) ->
jobs.push (callback) ->
UserGetter.getUserOrUserStubById user_id, { first_name: 1, last_name: 1 }, (error, user) ->
UserGetter.getUserOrUserStubById user_id, { first_name: 1, last_name: 1, email: 1 }, (error, user) ->
return callback(error) if error?
users[user_id] = user
callback()