Commit dc09e7a0 authored by Rémy Coutable's avatar Rémy Coutable

Fix wrong conflict resolution

The EE version of the protected branches JS doesn't take a label...

We should really reduce the disrepancies between CE and EE for this
feature.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent e8a6e7c1
...@@ -69,12 +69,8 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController ...@@ -69,12 +69,8 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
def access_levels_options def access_levels_options
{ {
push_access_levels: { push_access_levels: ProtectedBranch::PushAccessLevel.human_access_levels.map { |id, text| { id: id, text: text, before_divider: true } },
"Roles" => 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 } }
},
merge_access_levels: {
"Roles" => ProtectedBranch::MergeAccessLevel.human_access_levels.map { |id, text| { id: id, text: text, before_divider: true } }
}
} }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment