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 'app/models/protected_tag.rb')
-rw-r--r--app/models/protected_tag.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/protected_tag.rb b/app/models/protected_tag.rb
index bca5522759d..a52fe90bb2b 100644
--- a/app/models/protected_tag.rb
+++ b/app/models/protected_tag.rb
@@ -9,7 +9,6 @@ class ProtectedTag < ActiveRecord::Base
accepts_nested_attributes_for :push_access_levels
def self.protected?(project, ref_name)
- protected_refs = project.protected_tags_array
- self.matching(ref_name, protected_refs: protected_refs).present?
+ self.matching(ref_name, protected_refs: project.protected_tags).present?
end
end