diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-05-16 09:02:52 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-06-05 05:32:26 -0700 |
commit | a738a446f4ade6204c10f016e355da354dbfc01f (patch) | |
tree | 5a689fa6086046d7e5f038c42839820bcf1ea781 /app/controllers | |
parent | 2d6cafa781ae24586fcd5307ae01daf3f407aa25 (diff) | |
download | gitlab-ce-a738a446f4ade6204c10f016e355da354dbfc01f.tar.gz |
Check disabled commands in GitAccess instead
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/git_http_controller.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/controllers/projects/git_http_controller.rb b/app/controllers/projects/git_http_controller.rb index a36dc362f4e..e7b498599f2 100644 --- a/app/controllers/projects/git_http_controller.rb +++ b/app/controllers/projects/git_http_controller.rb @@ -76,8 +76,6 @@ class Projects::GitHttpController < Projects::GitHttpClientController end def upload_pack_allowed? - return false unless Gitlab.config.gitlab_shell.upload_pack - access_check.allowed? || ci? end @@ -96,8 +94,6 @@ class Projects::GitHttpController < Projects::GitHttpClientController end def receive_pack_allowed? - return false unless Gitlab.config.gitlab_shell.receive_pack - access_check.allowed? end |