From: Anton Khorev Date: Fri, 24 Jan 2025 02:28:46 +0000 (+0300) Subject: Remove doorkeeper_token branch from web deny_access X-Git-Tag: live~66^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/74854f831b2d597008473bea7cda177dcebd68a0 Remove doorkeeper_token branch from web deny_access --- 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" }