summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2018-12-20 17:25:48 +0100
committerDouwe Maan <douwe@selenight.nl>2019-01-02 15:31:31 +0100
commit55723c223f130dc2282cc7c700c590749ad9ad05 (patch)
treedf492e99715fd7428ef379d1669dbdcbde16e598 /app/controllers
parent28cffb9f41836a84d3323e640fe31f92f37bccd9 (diff)
downloadgitlab-ce-55723c223f130dc2282cc7c700c590749ad9ad05.tar.gz
Move magic '_any' string to constant
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/git_http_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/projects/git_http_controller.rb b/app/controllers/projects/git_http_controller.rb
index c0aa39d87c6..30e436365de 100644
--- a/app/controllers/projects/git_http_controller.rb
+++ b/app/controllers/projects/git_http_controller.rb
@@ -80,9 +80,7 @@ class Projects::GitHttpController < Projects::GitHttpClientController
end
def access_check
- # Use the magic string '_any' to indicate we do not know what the
- # changes are. This is also what gitlab-shell does.
- access.check(git_command, '_any')
+ access.check(git_command, Gitlab::GitAccess::ANY)
@project ||= access.project
end