X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8cf77a2f360266787360da369fb5d701d83f842f..74854f831b2d597008473bea7cda177dcebd68a0:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f6006fe5e..9949149aa 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" }