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-11-24 15:43:02 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-11-24 16:47:03 +0300
commit96106287db2b6403809b238689afb592da5e2abf (patch)
tree3e7164ff2582b258c6fc175df8a16c55c2388643 /app/models/concerns/protected_branch_access.rb
parentd6dd9d712ac24a095d0b0506731f9415b7c3b5f5 (diff)
Deduplicate protected ref human_access_levels
Previously these were duplicated so they could be different for push/merge, but this was no longer necessary after https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11232
Diffstat (limited to 'app/models/concerns/protected_branch_access.rb')
-rw-r--r--app/models/concerns/protected_branch_access.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/concerns/protected_branch_access.rb b/app/models/concerns/protected_branch_access.rb
index 77307e92f22..e62f42e8e70 100644
--- a/app/models/concerns/protected_branch_access.rb
+++ b/app/models/concerns/protected_branch_access.rb
@@ -8,14 +8,6 @@ module ProtectedBranchAccess
delegate :project, to: :protected_branch
- def self.human_access_levels
- {
- Gitlab::Access::MASTER => "Masters",
- Gitlab::Access::DEVELOPER => "Developers + Masters",
- Gitlab::Access::NO_ACCESS => "No one"
- }.with_indifferent_access
- end
-
def check_access(user)
return false if access_level == Gitlab::Access::NO_ACCESS