Remove doorkeeper_token branch from web deny_access
This commit is contained in:
parent
8cf77a2f36
commit
74854f831b
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