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 223a7e1..b9570e6 100644 --- a/models/Access.js +++ b/models/Access.js @@ -83,7 +83,7 @@ AccessSchema.statics = { loadProject: function(project, callback) { this.find({ project: project }) - .populate('user') + .populate({path: 'user', select: '_id name'}) .sort({ 'created': 1 }) // sort by date .exec(callback); }, |