Commit 78803965 authored by Rémy Coutable's avatar Rémy Coutable

Reduce diff with CE in Projects::LfsApiController

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 0ae053a1
# frozen_string_literal: true
class Projects::LfsApiController < Projects::GitHttpClientController
include ApplicationSettingsHelper
include ApplicationHelper
include GitlabRoutingHelper
include LfsRequest
prepend ::EE::Projects::LfsApiController
LFS_TRANSFER_CONTENT_TYPE = 'application/octet-stream'.freeze
skip_before_action :lfs_check_access!, only: [:deprecated]
......@@ -128,3 +123,5 @@ class Projects::LfsApiController < Projects::GitHttpClientController
_('You cannot write to this read-only GitLab instance.')
end
end
Projects::LfsApiController.prepend(::EE::Projects::LfsApiController)
......@@ -4,6 +4,7 @@ module EE
module Projects
module LfsApiController
extend ::Gitlab::Utils::Override
include GitlabRoutingHelper
override :batch_operation_disallowed?
def batch_operation_disallowed?
......
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