Commit 0c0232e6 authored by Nick Thomas's avatar Nick Thomas Committed by Stan Hu

Fix a bug in User#accessible_deploy_keys

parent d4d911e9
......@@ -942,7 +942,7 @@ class User < ApplicationRecord
def accessible_deploy_keys
@accessible_deploy_keys ||= begin
key_ids = project_deploy_keys.pluck(:id)
key_ids = project_deploy_keys.pluck(:deploy_key_id)
key_ids.push(*DeployKey.are_public.pluck(:id))
DeployKey.where(id: key_ids)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment