X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f58f49e196da9a063c8c7e61b158e06a2df0315d..e222329d043592af299eed12cf6ad16969c1b46f:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b4c0fbc23..fc8b75b60 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -345,7 +345,7 @@ class ApplicationController < ActionController::Base end def deny_access(_exception) - if current_token + if doorkeeper_token || current_token set_locale report_error t("oauth.permissions.missing"), :forbidden elsif current_user