Included previous fixes not implemented in merged version.

This commit is contained in:
rainbow napkin 2026-09-24 18:41:21 -04:00
parent a07edfc842
commit 4b242558ea

View file

@ -357,6 +357,12 @@ class queue{
throw loggerUtils.exceptionSmith(`Unable to find channel document ${this.channel.name} while queue item!`, "queue");
}
//If the user doesn't have permission to be doing this shit
if(!((!this.locked && await chanDB.permCheck(socket.user, 'scheduleMedia')) || await chanDB.permCheck(socket.user, 'scheduleAdmin'))){
//Fuggettabouttit!
return;
}
//If something is playing
if(this.nowPlaying != null){
//Capture currently playing object
@ -403,7 +409,7 @@ class queue{
);
//Validate mode input, and default to overwrite
this.liveMode = (data.mode == "pushback") ? "pushback" : "overwrite";
this.liveMode = (data != null && data.mode == "pushback") ? "pushback" : "overwrite";
//Throw stream lock
this.streamLock = true;