prevent deleted users belonging to a group from breaking edit functionality

v1.18.x
psychobunny 10 years ago
parent 4d4dc344a6
commit 50b264ac7d

@ -123,10 +123,12 @@ var async = require('async'),
return callback(err);
}
// User counts
results.base.count = numUsers || results.users.length;
results.base.members = results.users;
results.base.memberCount = numUsers || results.users.length;
results.base.members = results.users.filter(function(user) {
return typeof user !== 'undefined';
});
results.base.count = numUsers || results.base.members.length;
results.base.memberCount = numUsers || results.base.members.length;
results.base.deleted = !!parseInt(results.base.deleted, 10);
results.base.hidden = !!parseInt(results.base.hidden, 10);

Loading…
Cancel
Save