mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
uid fixes
This commit is contained in:
@@ -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]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user