]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Skip gif animation optimization in case both frames are identical
[rails.git] / app / controllers / browse_controller.rb
index 6eb9675683f81df3089136e9fdfca2ba62e9ae57..ebdd2cd80fbbb2dfc812ae155477639215069e01 100644 (file)
@@ -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"