Updated issue with 'pos'

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-05 18:07:41 +02:00
parent 22c8743aa8
commit a680b3ce0a
3 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -24,6 +24,7 @@ var autoplay = false;
var color = "#808080";
var dragging = false;
var user_auth_started = false;
var user_auth_avoid = false;
var connection_options = {
'sync disconnect on unload':true,

View File

@@ -1010,7 +1010,7 @@ io.on('connection', function(socket){
return;
}
db.collection(list).find({views: {$exists: true}}, function(err, docs) {
db.collection(coll).find({views: {$exists: true}}, function(err, docs) {
if(docs.length > 0 && (docs[0].userpass == undefined || docs[0].userpass == "" || (msg.hasOwnProperty('pass') && docs[0].userpass == decrypt_string(socketid, msg.pass)))) {
check_inlist(coll, guid, socket, name, offline);
send_play(coll, socket);