app/assets/javascripts/faye-authentication.js in faye-authentication-1.12 vs app/assets/javascripts/faye-authentication.js in faye-authentication-1.13

- old
+ new

@@ -90,10 +90,10 @@ } }; FayeAuthentication.prototype.authentication_required = function(message) { var subscription_or_channel = message.subscription || message.channel; - if (message.channel == '/meta/subscribe' || message.channel.lastIndexOf('/meta/', 0) !== 0) { + if (message.channel.lastIndexOf('/meta/subscribe') === 0 || message.channel.lastIndexOf('/meta/', 0) !== 0) { if(this._options.whitelist) { try { return (!this._options.whitelist(subscription_or_channel)); } catch (e) { this.logger.error("[Faye] Error caught when evaluating whitelist function : " + e.message);