BigW Consortium Gitlab

Commit 72147812 by Lin Jen-Shin

Also need to check against push rules:

parent 5da9bfa4
...@@ -91,7 +91,7 @@ module Gitlab ...@@ -91,7 +91,7 @@ module Gitlab
def deploy_key_push_access_check(changes) def deploy_key_push_access_check(changes)
if deploy_key.can_push_to?(project) if deploy_key.can_push_to?(project)
check_repository_existence! check_repository_existence!
check_change_access!(changes) if user check_change_access!(changes)
else else
raise UnauthorizedError, ERROR_MESSAGES[:deploy_key] raise UnauthorizedError, ERROR_MESSAGES[:deploy_key]
end 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