Commit 0de3b33b authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'mk/fix-lfs-authentication-url-ee' into 'master'

Fix LFS authentication URL in EE

See merge request gitlab-org/gitlab-ee!16146
parents d9e7951c 28c538cc
---
title: Fix LFS authentication URL in EE
merge_request: 16146
author:
type: fixed
# frozen_string_literal: true
module EE
module API
module Internal
extend ActiveSupport::Concern
prepended do
helpers do
extend ::Gitlab::Utils::Override
override :lfs_authentication_url
def lfs_authentication_url(project)
project.lfs_http_url_to_repo(params[:operation])
end
end
end
end
end
end
# frozen_string_literal: true
module EE
module API
module Internal
module Base
extend ActiveSupport::Concern
prepended do
helpers do
extend ::Gitlab::Utils::Override
override :lfs_authentication_url
def lfs_authentication_url(project)
project.lfs_http_url_to_repo(params[:operation])
end
end
end
end
end
end
end
......@@ -271,3 +271,5 @@ module API
end
end
end
API::Internal::Base.prepend_if_ee('EE::API::Internal::Base')
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