diff --git a/src/websockets.js b/src/websockets.js index 723922ad23..c9b3f73a88 100644 --- a/src/websockets.js +++ b/src/websockets.js @@ -720,8 +720,12 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }), socket.on('api:admin.user.search', function(username) { if(uid && uid > 0) { user.search(username, function(data) { - data = user.filterBannedUsers(data); - socket.emit('api:admin.user.search', data); + user.isAdministrator(uid, function(isAdmin) { + if(!isAdmin) + data = user.filterBannedUsers(data); + + socket.emit('api:admin.user.search', data); + }); }); } else { socket.emit('api:admin.user.search', null);