lib/faye/authentication.rb in faye-authentication-1.9.0 vs lib/faye/authentication.rb in faye-authentication-1.9.1
- old
+ new
@@ -39,9 +39,10 @@
true
end
def self.authentication_required?(message, options = {})
subscription_or_channel = message['subscription'] || message['channel']
+ return false if message['channel'].nil?
return false unless (message['channel'] == '/meta/subscribe' || (!(message['channel'].start_with?('/meta/'))))
whitelist_proc = options[:whitelist]
if whitelist_proc
begin
return !whitelist_proc.call(subscription_or_channel)