X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/47a8907e2a622804ac400be8f4e7ec611f006c87..f8ad4c79a4c1880370a035be0c0286a9b4285a69:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 40f02300a..176fd8c2e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -304,10 +304,7 @@ class ApplicationController < ActionController::Base end def deny_access(_exception) - if doorkeeper_token - set_locale - report_error t("oauth.permissions.missing"), :forbidden - elsif current_user + if current_user set_locale respond_to do |format| format.html { redirect_to :controller => "/errors", :action => "forbidden" }