X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6600221fe3a72f4c5ead056b829b666ed00841a0..951564eed1c82ec1a435f4e4636db86d1b7604fc:/app/controllers/changesets_controller.rb diff --git a/app/controllers/changesets_controller.rb b/app/controllers/changesets_controller.rb index fff9f543b..32d9fd733 100644 --- a/app/controllers/changesets_controller.rb +++ b/app/controllers/changesets_controller.rb @@ -7,7 +7,7 @@ class ChangesetsController < ApplicationController skip_before_action :verify_authenticity_token, :except => [:index] before_action :authorize_web before_action :set_locale - before_action(:only => [:index, :feed]) { |c| c.check_database_readable(true) } + before_action -> { check_database_readable(true) }, :only => [:index, :feed] authorize_resource