Merge remote-tracking branch 'upstream/pull/5673'
This commit is contained in:
commit
b7ee8034dc
1 changed files with 0 additions and 2 deletions
|
@ -82,8 +82,6 @@ class ApiController < ApplicationController
|
|||
if doorkeeper_token
|
||||
set_locale
|
||||
report_error t("oauth.permissions.missing"), :forbidden
|
||||
elsif current_user
|
||||
head :forbidden
|
||||
else
|
||||
head :unauthorized
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue