Fixed issue with new lists

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-04 10:31:46 +01:00
parent ceebba6253
commit 785813b842
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ function conf_function(params, coll, guid, offline, socket) {
} else {
hash = adminpass;
}
db.collection(coll + "_settings").find(function(err, docs){
db.collection(coll + "_settings").find({id: "config"}, function(err, docs){
if(docs !== null && docs.length !== 0 && (docs[0].adminpass === "" || docs[0].adminpass == hash)) {
var obj = {
addsongs:addsongs,