This commit is contained in:
barisusakli
2014-06-23 19:10:59 -04:00
parent 36ed21ad72
commit 3c3ad7d115
3 changed files with 33 additions and 17 deletions

View File

@@ -50,6 +50,9 @@ SocketUser.increaseViewCount = function(socket, uid, callback) {
};
SocketUser.search = function(socket, username, callback) {
if (!socket.uid) {
return callback(new Error('[[error:not-logged-in]]'));
}
user.search(username, callback);
};