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:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-04 05:50:15 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-04-04 05:50:15 +0300
commitd85471ac1a4574053b057dd7cc02858d591a8ffd (patch)
tree4c49fc7670606badfe78e1cc318ee74802de2f32 /app/models/concerns/protected_ref.rb
parent07d7d8e65905a39164b63f55eccdcea8f10f5d14 (diff)
Fixed UserAccess#can_create_tag? after create_access_levels rename
Diffstat (limited to 'app/models/concerns/protected_ref.rb')
-rw-r--r--app/models/concerns/protected_ref.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/protected_ref.rb b/app/models/concerns/protected_ref.rb
index ab28eb19b64..7c0183952a0 100644
--- a/app/models/concerns/protected_ref.rb
+++ b/app/models/concerns/protected_ref.rb
@@ -8,7 +8,7 @@ module ProtectedRef
delegate :matching, :matches?, :wildcard?, to: :ref_matcher
- def self.protected_ref_accessible_to?(ref, user, action: :push)
+ def self.protected_ref_accessible_to?(ref, user, action:)
access_levels_for_ref(ref, action: action).any? do |access_level|
access_level.check_access(user)
end
@@ -20,7 +20,7 @@ module ProtectedRef
end
end
- def self.access_levels_for_ref(ref, action: :push)
+ def self.access_levels_for_ref(ref, action:)
self.matching(ref).map(&:"#{action}_access_levels").flatten
end