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:
authorPhil Hughes <me@iamphill.com>2017-05-10 11:46:50 +0300
committerPhil Hughes <me@iamphill.com>2017-05-10 19:19:40 +0300
commit025a1b01758662fed033380d3ae69149d2966e0c (patch)
treeccc48f3a456d47ffd2f14ff0766a9c7038aa007b /app/models/protected_branch/merge_access_level.rb
parent566ee14516ac54e52c4dfaf40d10bc5f2abc3627 (diff)
Enabled no-one as a merge access level in protected branches
Closes #31541
Diffstat (limited to 'app/models/protected_branch/merge_access_level.rb')
-rw-r--r--app/models/protected_branch/merge_access_level.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/models/protected_branch/merge_access_level.rb b/app/models/protected_branch/merge_access_level.rb
index 771e3376613..e8d35ac326f 100644
--- a/app/models/protected_branch/merge_access_level.rb
+++ b/app/models/protected_branch/merge_access_level.rb
@@ -1,13 +1,3 @@
class ProtectedBranch::MergeAccessLevel < ActiveRecord::Base
include ProtectedBranchAccess
-
- validates :access_level, presence: true, inclusion: { in: [Gitlab::Access::MASTER,
- Gitlab::Access::DEVELOPER] }
-
- def self.human_access_levels
- {
- Gitlab::Access::MASTER => "Masters",
- Gitlab::Access::DEVELOPER => "Developers + Masters"
- }.with_indifferent_access
- end
end