diff options
author | Valery Sizov <valery@gitlab.com> | 2014-10-15 18:26:15 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2014-10-15 20:03:25 +0300 |
commit | b5763e91cdeaba55b3c426129ba3c4f9638c5eb1 (patch) | |
tree | 942dddd23f2e8f4738b27aeb25bfe72ea928e852 /lib/api/internal.rb | |
parent | f7342ce56764aaf6465bca74239955778c25107b (diff) | |
download | gitlab-ce-b5763e91cdeaba55b3c426129ba3c4f9638c5eb1.tar.gz |
add gitlab-shell identification
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r-- | lib/api/internal.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index 9ac659f50fd..ebf2296097d 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -1,6 +1,10 @@ module API # Internal access API class Internal < Grape::API + before { + authenticate_by_gitlab_shell_token! + } + namespace 'internal' do # Check if git command is allowed to project # |