diff options
author | Alexander Randa <randa.alex@gmail.com> | 2017-06-20 09:37:07 +0000 |
---|---|---|
committer | Alexander Randa <randa.alex@gmail.com> | 2017-06-20 11:23:13 +0000 |
commit | c7bcebd56e264772a8fe177e64476ea7b2b80144 (patch) | |
tree | dc224aa7476c7e8f87df51bb63965d2e9033db4f /lib/api | |
parent | 5214e507b043c8e71d2826252491cdac97d27416 (diff) | |
download | gitlab-ce-c7bcebd56e264772a8fe177e64476ea7b2b80144.tar.gz |
Fix edit button for deploy keys available from other projects
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/deploy_keys.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/deploy_keys.rb b/lib/api/deploy_keys.rb index 7cdee8aced7..d5c2f3d5094 100644 --- a/lib/api/deploy_keys.rb +++ b/lib/api/deploy_keys.rb @@ -86,7 +86,7 @@ module API at_least_one_of :title, :can_push end put ":id/deploy_keys/:key_id" do - key = user_project.deploy_keys.find(params.delete(:key_id)) + key = DeployKey.find(params.delete(:key_id)) authorize!(:update_deploy_key, key) |