]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Use paragraphs instead of line breaks, and avoid using html in translation strings
[rails.git] / app / controllers / browse_controller.rb
index 1bbf85adce4d8d619bd0fcd19ee586e518f45585..50d0ae0a545e60b130331aabbbeb5764331a540c 100644 (file)
@@ -3,7 +3,7 @@ class BrowseController < ApplicationController
 
   before_action :authorize_web
   before_action :set_locale
-  before_action -> { check_database_readable(true) }
+  before_action -> { check_database_readable(:need_api => true) }
   before_action :require_oauth
   around_action :web_timeout
   authorize_resource :class => false