|
|
|
@ -317,13 +317,11 @@ var utils = require('./../public/src/utils.js'),
|
|
|
|
|
return callback(err, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Groups.getGidFromName('Administrators', function(err, gid) {
|
|
|
|
|
|
|
|
|
|
function iterator(uid, callback) {
|
|
|
|
|
User.getUserData(uid, function(err, userData) {
|
|
|
|
|
Groups.isMember(uid, gid, function(err, isMember) {
|
|
|
|
|
User.isAdministrator(uid, function(isAdmin) {
|
|
|
|
|
if (userData) {
|
|
|
|
|
userData.administrator = isMember;
|
|
|
|
|
userData.administrator = isAdmin?"1":"0";
|
|
|
|
|
data.push(userData);
|
|
|
|
|
}
|
|
|
|
|
callback(null);
|
|
|
|
@ -335,7 +333,7 @@ var utils = require('./../public/src/utils.js'),
|
|
|
|
|
callback(err, data);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
User.createGravatarURLFromEmail = function(email) {
|
|
|
|
|