Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/deploy_key_access.rb')
-rw-r--r--lib/gitlab/deploy_key_access.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/gitlab/deploy_key_access.rb b/lib/gitlab/deploy_key_access.rb
index a582c978be7..caf2a73c338 100644
--- a/lib/gitlab/deploy_key_access.rb
+++ b/lib/gitlab/deploy_key_access.rb
@@ -16,17 +16,6 @@ module Gitlab
attr_reader :deploy_key
- def protected_tag_accessible_to?(ref, action:)
- if Feature.enabled?(:deploy_key_for_protected_tags, project)
- super
- else
- assert_project!
- # a deploy key can always push a protected tag
- # (which is not always the case when pushing to a protected branch)
- true
- end
- end
-
def can_collaborate?(_ref)
assert_project!