mirror of https://github.com/calzoneman/sync.git
fix enforcement of media limit
This commit is contained in:
parent
72c8b4f4fb
commit
e19acd2d63
|
@ -359,8 +359,8 @@ PlaylistModule.prototype.handleQueue = function (user, data) {
|
|||
|
||||
var maxlength = 0;
|
||||
if (!perms.canExceedMaxLength(user)) {
|
||||
if (this.channel.modules.opts) {
|
||||
maxlength = this.channel.modules.opts.get("maxlength");
|
||||
if (this.channel.modules.options) {
|
||||
maxlength = this.channel.modules.options.get("maxlength");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1187,8 +1187,8 @@ PlaylistModule.prototype.handleQueuePlaylist = function (user, data) {
|
|||
var temp = data.temp || !perms.canAddNonTemp(user);
|
||||
var maxlength = 0;
|
||||
if (!perms.canExceedMaxLength(user)) {
|
||||
if (this.channel.modules.opts) {
|
||||
maxlength = this.channel.modules.opts.get("maxlength");
|
||||
if (this.channel.modules.options) {
|
||||
maxlength = this.channel.modules.options,get("maxlength");
|
||||
}
|
||||
}
|
||||
var qdata = {
|
||||
|
|
Loading…
Reference in New Issue