prevent deleted users belonging to a group from breaking edit functionality

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

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

Loading…
Cancel
Save