diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-11 21:44:33 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-11 21:44:33 +0800 |
commit | 71ae01fefe62caf396640affb8ca618fe68db5a0 (patch) | |
tree | 91ffeda13f1fee71bfec0c9b3ffb4cb99cd2f096 /lib/gitlab/git_access.rb | |
parent | 38fbcb99dba61cfae1b788e0ec947911c4d14dd8 (diff) | |
download | gitlab-ce-71ae01fefe62caf396640affb8ca618fe68db5a0.tar.gz |
Add more tests and fix write to project check
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r-- | lib/gitlab/git_access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index 78f562821ea..96979398c83 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -89,7 +89,7 @@ module Gitlab end def deploy_key_push_access_check(changes) - if deploy_key.can_push? + if deploy_key.can_push_to?(project) check_repository_existence! check_change_access!(changes) if user else |