Added add song to other list from one list button in the controls bar

This commit is contained in:
Kasper Rynning-Tønnesen
2019-01-19 16:58:42 +01:00
parent 5f3c7890a0
commit dd9a58f810
4 changed files with 43 additions and 4 deletions

View File

@@ -415,8 +415,9 @@ function add_function(arr, coll, guid, offline, socket) {
}
db.collection(coll + "_settings").find(function(err, docs){
if(docs.length > 0 && (docs[0].userpass == undefined || docs[0].userpass == "" || (arr.hasOwnProperty('pass') && docs[0].userpass == arr.pass))) {
Functions.check_inlist(coll, guid, socket, offline, undefined, "place 5");
if((arr.hasOwnProperty("offsiteAdd") && !arr.offsiteAdd) || !arr.hasOwnProperty("offsiteAdd")) {
Functions.check_inlist(coll, guid, socket, offline, undefined, "place 5");
}
var id = arr.id + "";
var title = arr.title;
var hash = arr.adminpass;