diff options
Diffstat (limited to 'models/Access.js')
-rw-r--r-- | models/Access.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/Access.js b/models/Access.js index 69b556a..223a7e1 100644 --- a/models/Access.js +++ b/models/Access.js @@ -99,7 +99,7 @@ AccessSchema.statics = { loadProjects: function(projects, callback) { this.find({ project: { $in: projects } }) - .populate({ path: 'user', select: 'name email status' }) + .populate({ path: 'user', select: '_id name' }) .sort({ 'created': -1 }) .exec(callback); }, |