]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/traces_controller.rb
Fix database offline mode
[rails.git] / app / controllers / traces_controller.rb
index 68a125f13f374b9475b7d72796019c4931e2109d..3091f4360f39cae2a40184c2734f25b651f00f5c 100644 (file)
@@ -3,10 +3,10 @@ class TracesController < ApplicationController
 
   before_action :authorize_web
   before_action :set_locale
+  before_action :check_database_readable
 
   authorize_resource
 
-  before_action :check_database_readable
   before_action :check_database_writable, :only => [:new, :create, :edit, :delete]
   before_action :offline_warning, :only => [:mine, :show]
   before_action :offline_redirect, :only => [:new, :create, :edit, :delete, :data]