Commit 02c4924e authored by Ash McKenzie's avatar Ash McKenzie 🇦🇺

Allow auth via JWT (always false in CE)

parent 68082d35
......@@ -233,6 +233,8 @@ module Gitlab
end
elsif user
# User access is verified in check_change_access!
elsif authd_via_jwt?
# Authenticated via JWT
else
raise UnauthorizedError, ERROR_MESSAGES[:upload]
end
......@@ -321,6 +323,10 @@ module Gitlab
!Gitlab.config.gitlab_shell.receive_pack
end
def authd_via_jwt?
false
end
protected
def changes_list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment