custom-media: implement queueing and playback changes

This commit is contained in:
Calvin Montgomery 2017-08-08 20:35:17 -07:00
parent a6de8731b3
commit 04c9d48779
10 changed files with 93 additions and 21 deletions

View file

@ -386,7 +386,7 @@ PlaylistModule.prototype.handleQueue = function (user, data) {
id: id
});
return;
} else if (type === "fi" && !perms.canAddRawFile(user)) {
} else if ((type === "fi" || type === "cm") && !perms.canAddRawFile(user)) {
user.socket.emit("queueFail", {
msg: "You don't have permission to add raw video files",
link: link,