Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
78803965
Commit
78803965
authored
Dec 17, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce diff with CE in Projects::LfsApiController
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
0ae053a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
app/controllers/projects/lfs_api_controller.rb
app/controllers/projects/lfs_api_controller.rb
+2
-5
ee/app/controllers/ee/projects/lfs_api_controller.rb
ee/app/controllers/ee/projects/lfs_api_controller.rb
+1
-0
No files found.
app/controllers/projects/lfs_api_controller.rb
View file @
78803965
# 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
)
ee/app/controllers/ee/projects/lfs_api_controller.rb
View file @
78803965
...
...
@@ -4,6 +4,7 @@ module EE
module
Projects
module
LfsApiController
extend
::
Gitlab
::
Utils
::
Override
include
GitlabRoutingHelper
override
:batch_operation_disallowed?
def
batch_operation_disallowed?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment