mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-30 12:20:38 +01:00
search banned users only on /users/banned route
This commit is contained in:
@@ -97,8 +97,6 @@ module.exports = function(User) {
|
||||
});
|
||||
}
|
||||
|
||||
console.log(userData);
|
||||
|
||||
if(data.bannedOnly) {
|
||||
userData = userData.filter(function(user) {
|
||||
return user && user.banned;
|
||||
|
||||
Reference in New Issue
Block a user