lib/prosopite.rb in prosopite-1.0.4 vs lib/prosopite.rb in prosopite-1.0.5

- old
+ new

@@ -74,10 +74,10 @@ next unless fingerprints.uniq.size == 1 kaller = tc[:prosopite_query_caller][location_key] - is_allowed = kaller.any? { |f| @allow_list.concat(DEFAULT_ALLOW_LIST).any? { |s| f.include?(s) } } + is_allowed = kaller.any? { |f| (@allow_list + DEFAULT_ALLOW_LIST).any? { |s| f.include?(s) } } unless is_allowed queries = tc[:prosopite_query_holder][location_key] tc[:prosopite_notifications][queries] = kaller end end