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