X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/45c464a69a0fe8c6e68ec7257efa545f74d0297c..c51786d10bc6dda488964f468a6a3071dd6912a8:/app/controllers/browse_controller.rb?ds=inline diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index 6eb967568..ebdd2cd80 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -3,9 +3,10 @@ class BrowseController < ApplicationController before_action :authorize_web before_action :set_locale - before_action(:except => [:query]) { |c| c.check_database_readable(true) } + before_action -> { check_database_readable(true) } before_action :require_oauth around_action :web_timeout + authorize_resource :class => false def relation @type = "relation"