X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e222329d043592af299eed12cf6ad16969c1b46f..4d47cff5e1d359fa27c5c46d2706faae39a3eacc:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fc8b75b60..8df126a04 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -67,7 +67,7 @@ class ApplicationController < ActionController::Base end def require_oauth - @oauth_token = current_user.access_token(Settings.oauth_key) if current_user && Settings.key?(:oauth_key) + @oauth_token = current_user.oauth_token(Settings.oauth_application) if current_user && Settings.key?(:oauth_application) end ##