passed in wrong object

v1.18.x
psychobunny 10 years ago
parent 0828caab32
commit f253b11d71

@ -45,7 +45,7 @@ usersController.getOnlineUsers = function(req, res, next) {
};
plugins.fireHook('filter:userlist.get', {data: userData, uid: uid}, function(err, userData) {
res.render('users', userData);
res.render('users', userData.data);
});
});
};
@ -77,7 +77,7 @@ usersController.getUsers = function(set, count, req, res, next) {
};
plugins.fireHook('filter:userlist.get', {data: userData, uid: uid}, function(err, userData) {
res.render('users', userData);
res.render('users', userData.data);
});
});
};
@ -119,7 +119,7 @@ usersController.getUsersForSearch = function(req, res, next) {
};
plugins.fireHook('filter:userlist.get', {data: userData, uid: uid}, function(err, userData) {
res.render('users', userData);
res.render('users', userData.data);
});
});
};

Loading…
Cancel
Save