diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-06 16:24:58 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-06 16:24:58 +0300 |
commit | 4528fa9817f2f9ba9ccf330ea2c9f6575b6a3c4b (patch) | |
tree | 72990f6527ed987bc99453f8edd0712c7b193c4e /lib/api/internal.rb | |
parent | 1882baa1aaa1c195cce55678b2b8a12e1b59db34 (diff) | |
download | gitlab-ce-4528fa9817f2f9ba9ccf330ea2c9f6575b6a3c4b.tar.gz |
modify api to work with new deploy keys
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r-- | lib/api/internal.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index affe1be54dd..3e1173bd0a3 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -25,8 +25,8 @@ module Gitlab return false unless project - if key.is_deploy_key - project == key.project && git_cmd == 'git-upload-pack' + if key.is_a? DeployKey + key.projects.include?(project) && git_cmd == 'git-upload-pack' else user = key.user |