Allow auth via JWT (always false in CE)

This commit is contained in:
Ash McKenzie 2018-08-05 22:11:37 +10:00
parent bea52d827e
commit b2103cb431
No known key found for this signature in database
GPG Key ID: A1253B4953E8D3E6
1 changed files with 6 additions and 0 deletions

View File

@ -233,6 +233,8 @@ module Gitlab
end
elsif user
# User access is verified in check_change_access!
elsif authed_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 authed_via_jwt?
false
end
protected
def changes_list