From 74854f831b2d597008473bea7cda177dcebd68a0 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 24 Jan 2025 05:28:46 +0300 Subject: [PATCH] Remove doorkeeper_token branch from web deny_access --- app/controllers/application_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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" } -- 2.39.5