summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-05-16 09:02:52 -0700
committerMichael Kozono <mkozono@gmail.com>2017-06-05 05:32:26 -0700
commita738a446f4ade6204c10f016e355da354dbfc01f (patch)
tree5a689fa6086046d7e5f038c42839820bcf1ea781 /app
parent2d6cafa781ae24586fcd5307ae01daf3f407aa25 (diff)
downloadgitlab-ce-a738a446f4ade6204c10f016e355da354dbfc01f.tar.gz
Check disabled commands in GitAccess instead
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/git_http_controller.rb4
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