Skip to content

Commit

Permalink
Remove doorkeeper_token branch from web deny_access
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Jan 24, 2025
1 parent 8cf77a2 commit 74854f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,7 @@ def current_ability
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" }
Expand Down

0 comments on commit 74854f8

Please sign in to comment.