]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changesets_controller.rb
Render unknown user with concerns code in notes controller
[rails.git] / app / controllers / changesets_controller.rb
index 5b6d3e010db0e5ea89d290eb71e28856a70af3bb..22d3356b79fee7425865fcff5de6098b2cc0b153 100644 (file)
@@ -1,12 +1,14 @@
 # The ChangesetController is the RESTful interface to Changeset objects
 
 class ChangesetsController < ApplicationController
+  include UserMethods
+
   layout "site"
   require "xml/libxml"
 
   before_action :authorize_web
   before_action :set_locale
-  before_action -> { check_database_readable(true) }, :only => [:index, :feed]
+  before_action -> { check_database_readable(:need_api => true) }, :only => [:index, :feed]
 
   authorize_resource