diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-06-22 08:57:11 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-06-22 08:57:11 +0300 |
commit | b3edcfeb51d7930ad0330e401f2ef5f27ee9671c (patch) | |
tree | a8d34dec7a3923f9ef807373980d62c2247ca394 /lib/api | |
parent | 31573d98f9e34a4fec6c41e0e8c8f3151e8837b5 (diff) | |
parent | 261e4fe8d8e6c01d0278a9e3770fe78d75336a07 (diff) |
Merge branch '9-3-stable-rc7' into '9-3-stable'
Prepare 9.3 RC7
See merge request !12348
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) |