diff --git a/src/socket.io/admin/user.js b/src/socket.io/admin/user.js index fce76d1644..768d451a58 100644 --- a/src/socket.io/admin/user.js +++ b/src/socket.io/admin/user.js @@ -99,7 +99,7 @@ User.search = function(socket, username, callback) { return next(err); } - userData.administrator = isAdmin?'1':'0'; + userData.administrator = isAdmin; next(); }); }