diff options
author | babatakao <babatakao@gmail.com> | 2013-06-04 18:50:51 +0400 |
---|---|---|
committer | baba <baba@bpsinc.jp> | 2013-06-04 21:59:30 +0400 |
commit | 37a90d5f764231cd765ff38448c6d650e61a4012 (patch) | |
tree | a40b7b6388822aee46ca36e6c126cce20a0d378c /lib/api/projects.rb | |
parent | b9d989dc056a2a2b9316ff9aa06b57c736426871 (diff) |
Selectable deploy keys contain master projects
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 8b20a2fcb14..f0648c326d5 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -439,7 +439,7 @@ module API end # Check for available deploy keys in other projects - key = current_user.owned_deploy_keys.find_by_key(attrs[:key]) + key = current_user.accessible_deploy_keys.find_by_key(attrs[:key]) if key user_project.deploy_keys << key present key, with: Entities::SSHKey |