diff options
-rw-r--r-- | lib/gitlab/middleware/read_only.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/middleware/read_only.rb b/lib/gitlab/middleware/read_only.rb index 32f90c0c447..246e35c3d3e 100644 --- a/lib/gitlab/middleware/read_only.rb +++ b/lib/gitlab/middleware/read_only.rb @@ -81,7 +81,8 @@ module Gitlab end def lfs_route - route_hash[:controller] == 'projects/lfs_api' && route_hash[:action] == 'batch' + request.path.end_with?('/info/lfs/objects/batch') + # route_hash[:controller] == 'projects/lfs_api' && route_hash[:action] == 'batch' end end end |