]> git.openstreetmap.org Git - rails.git/commitdiff
Enable oauth for geocoder#search
authorTom Hughes <tom@compton.nu>
Sun, 24 Nov 2013 17:05:02 +0000 (17:05 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 24 Nov 2013 17:05:02 +0000 (17:05 +0000)
app/controllers/geocoder_controller.rb

index 87eb329abfe9fc998c271af4ad1b328ae807bfd6..692ae24ddb2e892d89bbc50e663a9af668e96b67 100644 (file)
@@ -7,6 +7,7 @@ class GeocoderController < ApplicationController
 
   before_filter :authorize_web
   before_filter :set_locale
+  before_filter :require_oauth, :only => [:search]
 
   def search
     normalize_params