uid fixes

This commit is contained in:
Barış Soner Uşaklı
2018-11-17 22:31:39 -05:00
parent c0a75d735b
commit e17c4b2766
16 changed files with 33 additions and 39 deletions

View File

@@ -21,7 +21,7 @@ module.exports = function (SocketUser) {
};
SocketUser.setStatus = function (socket, status, callback) {
if (!socket.uid) {
if (socket.uid <= 0) {
return callback(new Error('[[error:invalid-uid]]'));
}