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:
Anton Khorev 2025-02-15 01:20:06 +03:00
parent f5af8befa9
commit 03867e2fee

View file

@ -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