diff --git a/src/socket.io/user/profile.js b/src/socket.io/user/profile.js index 0886b1e24c..4519d46bad 100644 --- a/src/socket.io/user/profile.js +++ b/src/socket.io/user/profile.js @@ -162,7 +162,7 @@ module.exports = function (SocketUser) { throw new Error('[[error:invalid-uid]]'); } - if (!data || !data.uid) { + if (!data || !(parseInt(data.uid, 10) > 0)) { throw new Error('[[error:invalid-data]]'); }