diff options
author | Sebastian Ziebell <sebastian.ziebell@asquera.de> | 2013-02-27 10:16:48 +0100 |
---|---|---|
committer | Sebastian Ziebell <sebastian.ziebell@asquera.de> | 2013-02-27 10:16:48 +0100 |
commit | ac4a09e9cca9018dbb8e52446078b91a4b87e410 (patch) | |
tree | 2acfae205ae42d30408ce8261a124bd746b76997 /lib/api | |
parent | 9ee6c58accfd51036d7242dc51fbfec2c9abeb06 (diff) | |
parent | 135418dcbf72d264a846649b95ea8e6d8a2aadcf (diff) | |
download | gitlab-ce-ac4a09e9cca9018dbb8e52446078b91a4b87e410.tar.gz |
Merge branch 'master' into fixes/api
Diffstat (limited to 'lib/api')
-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]) |