Commit 1e11e45f authored by tsl0922's avatar tsl0922

Fix: API 500 error when project does not exists

parent d1a5e370
......@@ -15,6 +15,7 @@ module Gitlab
key = Key.find(params[:key_id])
project = Project.find_with_namespace(params[:project])
git_cmd = params[:action]
return false unless project
if key.is_deploy_key
project == key.project && git_cmd == 'git-upload-pack'
......
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