mirror of https://github.com/calzoneman/sync.git
Fix #244 again. I want to get off autotemp's wild ride
This commit is contained in:
parent
637eadea23
commit
293576a3af
|
@ -1144,6 +1144,7 @@ Channel.prototype.tryQueue = function(user, data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
data.queueby = user ? user.name : "";
|
data.queueby = user ? user.name : "";
|
||||||
|
data.temp = !this.hasPermission(user, "addnontemp");
|
||||||
|
|
||||||
if(data.list)
|
if(data.list)
|
||||||
this.addMediaList(data, user);
|
this.addMediaList(data, user);
|
||||||
|
@ -1160,7 +1161,7 @@ Channel.prototype.addMedia = function(data, user) {
|
||||||
user.socket.emit("queueFail", "You don't have permission to add cusstom embeds");
|
user.socket.emit("queueFail", "You don't have permission to add cusstom embeds");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
data.temp = isLive(data.type) || !this.hasPermission(user, "addnontemp");
|
data.temp = data.temp || isLive(data.type);
|
||||||
data.queueby = user ? user.name : "";
|
data.queueby = user ? user.name : "";
|
||||||
data.maxlength = this.hasPermission(user, "exceedmaxlength") ? 0 : this.opts.maxlength;
|
data.maxlength = this.hasPermission(user, "exceedmaxlength") ? 0 : this.opts.maxlength;
|
||||||
var chan = this;
|
var chan = this;
|
||||||
|
|
Loading…
Reference in New Issue