Remove current_user branch from ApiController#deny_access
Unreachable because if there's no doorkeeper_token, there's also no current_user.
This commit is contained in:
parent
f5af8befa9
commit
03867e2fee
1 changed files with 0 additions and 2 deletions
|
@ -82,8 +82,6 @@ class ApiController < ApplicationController
|
||||||
if doorkeeper_token
|
if doorkeeper_token
|
||||||
set_locale
|
set_locale
|
||||||
report_error t("oauth.permissions.missing"), :forbidden
|
report_error t("oauth.permissions.missing"), :forbidden
|
||||||
elsif current_user
|
|
||||||
head :forbidden
|
|
||||||
else
|
else
|
||||||
head :unauthorized
|
head :unauthorized
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue