diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-12-20 17:25:48 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2019-01-02 15:31:31 +0100 |
commit | 55723c223f130dc2282cc7c700c590749ad9ad05 (patch) | |
tree | df492e99715fd7428ef379d1669dbdcbde16e598 /app/controllers | |
parent | 28cffb9f41836a84d3323e640fe31f92f37bccd9 (diff) | |
download | gitlab-ce-55723c223f130dc2282cc7c700c590749ad9ad05.tar.gz |
Move magic '_any' string to constant
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/git_http_controller.rb | 4 |
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 |