]> git.openstreetmap.org Git - rails.git/commitdiff
Remove doorkeeper_token branch from web deny_access
authorAnton Khorev <tony29@yandex.ru>
Fri, 24 Jan 2025 02:28:46 +0000 (05:28 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 24 Jan 2025 02:28:46 +0000 (05:28 +0300)
app/controllers/application_controller.rb

index f6006fe5e4ccdc7139a6db14d5e0cf7adf5ee748..9949149aa66a7823ad768a288c8a48972d228f63 100644 (file)
@@ -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" }