Added another test for voting

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-12 23:41:11 +02:00
parent 4102c85f5f
commit a16ec66017

View File

@@ -676,7 +676,7 @@ io.on('connection', function(socket){
}
}
if(coll == "" || coll == undefined || coll == null) {
if(coll == "" || coll == undefined || coll == null || !msg.hasOwnProperty("adminpass") || !msg.hasOwnProperty("pass") || !msg.hasOwnProperty("id")) {
socket.emit("update_required");
return;
}