diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-15 06:10:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-15 06:10:12 +0300 |
commit | fa6089d8ad89cc12adb7dbcd78594b97f8f6ed02 (patch) | |
tree | 9be269e7738972709207fdc0e1c4d505b0834c74 /lib/gitlab/deploy_key_access.rb | |
parent | f68b31bd2c8812f4aa3654c6ab7271578c2ceea4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/deploy_key_access.rb')
-rw-r--r-- | lib/gitlab/deploy_key_access.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/deploy_key_access.rb b/lib/gitlab/deploy_key_access.rb index 97fd6db407b..ca16582d2b4 100644 --- a/lib/gitlab/deploy_key_access.rb +++ b/lib/gitlab/deploy_key_access.rb @@ -8,6 +8,10 @@ module Gitlab @container = container end + def can_push_for_ref?(ref) + can_push_to_branch?(ref) + end + private attr_reader :deploy_key |