lib/faye/authentication.rb in faye-authentication-1.12 vs lib/faye/authentication.rb in faye-authentication-1.13
- old
+ new
@@ -40,10 +40,10 @@
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/'))))
+ return false unless (message['channel'].start_with?('/meta/subscribe') || (!(message['channel'].start_with?('/meta/'))))
whitelist_proc = options[:whitelist]
if whitelist_proc
begin
return !whitelist_proc.call(subscription_or_channel)
rescue => e