提交 64149177 编写于 作者: S Shinya Maeda

Remove conversion string to interger for access_level

上级 6f19fc11
......@@ -59,8 +59,6 @@ class Projects::RunnersController < Projects::ApplicationController
end
def runner_params
params.require(:runner).permit(Ci::Runner::FORM_EDITABLE).tap do |params|
params['access_level'] = params['access_level'].to_i if params['access_level']
end
params.require(:runner).permit(Ci::Runner::FORM_EDITABLE)
end
end
......@@ -10,7 +10,7 @@
= label :protected, "Protected", class: 'control-label'
.col-sm-10
.checkbox
= f.check_box :access_level, {}, Ci::Runner.access_levels['protected_'], Ci::Runner.access_levels['unprotected']
= f.check_box :access_level, {}, 'protected_', 'unprotected'
%span.light This runner will only run on pipelines trigged on protected branches
.form-group
= label :run_untagged, 'Run untagged jobs', class: 'control-label'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册