diff options
author | Phil Hughes <me@iamphill.com> | 2017-01-25 12:29:22 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-01-26 19:04:59 +0300 |
commit | 860c8cfc35956adba73c38b9b21be5c58069ba81 (patch) | |
tree | 42e48e098952a1011eb7360ba9c2d6cf1464c53f /app | |
parent | fadeefb688a4f98990df3849ef3fc8fa14dacf29 (diff) |
Added header to protected branches access dropdowns
CE part of https://gitlab.com/gitlab-org/gitlab-ee/issues/1294
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/projects/protected_branches_controller.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/projects/protected_branches_controller.rb b/app/controllers/projects/protected_branches_controller.rb index 9a438d5512c..2f422d352ed 100644 --- a/app/controllers/projects/protected_branches_controller.rb +++ b/app/controllers/projects/protected_branches_controller.rb @@ -68,8 +68,12 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController def access_levels_options { - push_access_levels: ProtectedBranch::PushAccessLevel.human_access_levels.map { |id, text| { id: id, text: text, before_divider: true } }, - merge_access_levels: ProtectedBranch::MergeAccessLevel.human_access_levels.map { |id, text| { id: id, text: text, before_divider: true } } + push_access_levels: { + "Roles" => ProtectedBranch::PushAccessLevel.human_access_levels.map { |id, text| { id: id, text: text, before_divider: true } }, + }, + merge_access_levels: { + "Roles" => ProtectedBranch::MergeAccessLevel.human_access_levels.map { |id, text| { id: id, text: text, before_divider: true } } + } } end |