diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index 93720500711fbe6964b980ed2603ec4cfa98c241..30cd09a0ca727ed8e9f4980c5546c2023e2df477 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -241,8 +241,6 @@ 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 @@ -331,10 +329,6 @@ module Gitlab !Gitlab.config.gitlab_shell.receive_pack end - def authed_via_jwt? - false - end - protected def changes_list