Included previous fixes not implemented in merged version.
This commit is contained in:
parent
a07edfc842
commit
4b242558ea
1 changed files with 7 additions and 1 deletions
|
|
@ -357,6 +357,12 @@ class queue{
|
||||||
throw loggerUtils.exceptionSmith(`Unable to find channel document ${this.channel.name} while queue item!`, "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 something is playing
|
||||||
if(this.nowPlaying != null){
|
if(this.nowPlaying != null){
|
||||||
//Capture currently playing object
|
//Capture currently playing object
|
||||||
|
|
@ -403,7 +409,7 @@ class queue{
|
||||||
);
|
);
|
||||||
|
|
||||||
//Validate mode input, and default to overwrite
|
//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
|
//Throw stream lock
|
||||||
this.streamLock = true;
|
this.streamLock = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue