Merge branch 'master' of github.com:designcreateplay/NodeBB

v1.18.x
Julian Lam 11 years ago
commit b19d84f1a7

@ -319,10 +319,13 @@ var utils = require('./../public/src/utils.js'),
function iterator(uid, callback) { function iterator(uid, callback) {
User.getUserData(uid, function(err, userData) { User.getUserData(uid, function(err, userData) {
if (userData) { User.isAdministrator(uid, function(isAdmin) {
data.push(userData); if (userData) {
} userData.administrator = isAdmin?"1":"0";
callback(null); data.push(userData);
}
callback(null);
});
}); });
} }
@ -330,6 +333,7 @@ var utils = require('./../public/src/utils.js'),
callback(err, data); callback(err, data);
}); });
}); });
} }
User.createGravatarURLFromEmail = function(email) { User.createGravatarURLFromEmail = function(email) {

Loading…
Cancel
Save