no rooms.enter for anons check tid on topic enter

This commit is contained in:
barisusakli
2014-10-28 23:56:33 -04:00
parent 0fba1e37a7
commit cbedc762fd
2 changed files with 6 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ SocketTopics.post = function(socket, data, callback) {
};
SocketTopics.enter = function(socket, tid, callback) {
if (!tid || !socket.uid) {
if (!parseInt(tid, 10) || !socket.uid) {
return;
}