Commit 72147812 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Also need to check against push rules:

Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18440615
parent 5da9bfa4
......@@ -91,7 +91,7 @@ module Gitlab
def deploy_key_push_access_check(changes)
if deploy_key.can_push_to?(project)
check_repository_existence!
check_change_access!(changes) if user
check_change_access!(changes)
else
raise UnauthorizedError, ERROR_MESSAGES[:deploy_key]
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