diff --git a/lib/api/internal.rb b/lib/api/internal.rb index 81451638090..295724c77c1 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -22,6 +22,7 @@ module Gitlab key = Key.find(params[:key_id]) project = Project.find_with_namespace(project_path) git_cmd = params[:action] + return false unless project if key.is_deploy_key