Merge remote-tracking branch 'upstream/pull/5542'
This commit is contained in:
commit
7d2ee0a1dc
1 changed files with 1 additions and 4 deletions
|
@ -304,10 +304,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def deny_access(_exception)
|
def deny_access(_exception)
|
||||||
if doorkeeper_token
|
if current_user
|
||||||
set_locale
|
|
||||||
report_error t("oauth.permissions.missing"), :forbidden
|
|
||||||
elsif current_user
|
|
||||||
set_locale
|
set_locale
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to :controller => "/errors", :action => "forbidden" }
|
format.html { redirect_to :controller => "/errors", :action => "forbidden" }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue