opt(users): admin can create maker for user if him already join other maker group

This commit is contained in:
OldHawk
2017-12-13 16:14:58 +08:00
parent 0523d911cc
commit c493b086ca
3 changed files with 21 additions and 2 deletions

View File

@@ -604,7 +604,7 @@ exports.userByID = function (req, res, next, id) {
User.findById(id, '-salt -password -providerData')
.populate('invited_by', 'username displayName profileImageURL')
.populate('makers', 'name')
.populate('makers', 'user name')
.exec(function (err, user) {
if (err) {
return next(err);