]> git.openstreetmap.org Git - rails.git/commitdiff
Add missing authorize_resource declaration to geocoder controller
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 9 Jan 2019 09:14:52 +0000 (10:14 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 9 Jan 2019 09:14:52 +0000 (10:14 +0100)
app/controllers/geocoder_controller.rb

index da5245687f73db3fb97871fac05a47876420f017..b9cf8d096f35a635e8e9ad957258f097e51e8300 100644 (file)
@@ -6,6 +6,7 @@ class GeocoderController < ApplicationController
   before_action :authorize_web
   before_action :set_locale
   before_action :require_oauth, :only => [:search]
   before_action :authorize_web
   before_action :set_locale
   before_action :require_oauth, :only => [:search]
+  authorize_resource :class => false
 
   def search
     @params = normalize_params
 
   def search
     @params = normalize_params