diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-26 22:53:59 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-26 22:53:59 +0200 |
commit | 4e5164338a77894c68816bc1e7eec018aea8301c (patch) | |
tree | cbba2fad5e43b44f0bf7b68faba40ea94f9640be /lib/api/internal.rb | |
parent | 2c5e4955c020eb8d5a28a48d6adc375c327523ac (diff) | |
download | gitlab-ce-4e5164338a77894c68816bc1e7eec018aea8301c.tar.gz |
specs for api/internal
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r-- | lib/api/internal.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index 5d74a761c05..d4f72d70d92 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -5,6 +5,12 @@ module Gitlab # # Check if ssh key has access to project code # + # Params: + # key_id - SSH Key id + # project - project path with namespace + # action - git action (git-upload-pack or git-receive-pack) + # ref - branch name + # get "/allowed" do key = Key.find(params[:key_id]) project = Project.find_with_namespace(params[:project]) |