diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-28 13:47:41 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-09-06 18:39:24 +1000 |
commit | 4fac214b5d78e8288b82afcc8a79d71d8aea294f (patch) | |
tree | 9b24f2b188eb38eb9677a57a24e4f4bde25de9da /lib/gitlab/git_access.rb | |
parent | c27a5d234435c22c0977a26dc83cb17f76eac4ac (diff) | |
download | gitlab-ce-4fac214b5d78e8288b82afcc8a79d71d8aea294f.tar.gz |
Update /api/v4/allowed
- Use proper HTTP codes for /api/v4/allowed response
- CustomAction support
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r-- | lib/gitlab/git_access.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index d74bcb8a459..93720500711 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -51,7 +51,7 @@ module Gitlab check_command_disabled!(cmd) check_command_existence!(cmd) - custom_action = check_custom_action!(cmd) + custom_action = check_custom_action(cmd) return custom_action if custom_action check_db_accessibility!(cmd) @@ -96,8 +96,8 @@ module Gitlab private - def check_custom_action!(cmd) - false + def check_custom_action(cmd) + nil end def check_valid_actor! |