]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/oauth2_authorizations_controller.rb
Merge remote-tracking branch 'upstream/pull/5398'
[rails.git] / app / controllers / oauth2_authorizations_controller.rb
index 415ab2775c12f248e90598bde7e2495078e126f9..9f86e8b184e711bce1e3429be2bd96a2d016c578 100644 (file)
@@ -7,4 +7,6 @@ class Oauth2AuthorizationsController < Doorkeeper::AuthorizationsController
   allow_all_form_action :only => :new
 
   authorize_resource :class => false
+
+  before_action :check_database_writable
 end