diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-11-24 15:43:02 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-11-24 16:47:03 +0300 |
commit | 96106287db2b6403809b238689afb592da5e2abf (patch) | |
tree | 3e7164ff2582b258c6fc175df8a16c55c2388643 /app/models/protected_tag/create_access_level.rb | |
parent | d6dd9d712ac24a095d0b0506731f9415b7c3b5f5 (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/protected_tag/create_access_level.rb')
-rw-r--r-- | app/models/protected_tag/create_access_level.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/protected_tag/create_access_level.rb b/app/models/protected_tag/create_access_level.rb index d1e81158351..6b6ab3d8279 100644 --- a/app/models/protected_tag/create_access_level.rb +++ b/app/models/protected_tag/create_access_level.rb @@ -1,14 +1,6 @@ class ProtectedTag::CreateAccessLevel < ActiveRecord::Base include ProtectedTagAccess - 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 |