Add an option to user make an issue confidential

parent e5370ba2
......@@ -163,7 +163,7 @@ class Projects::IssuesController < Projects::ApplicationController
def issue_params
params.require(:issue).permit(
:title, :assignee_id, :position, :description, :weight,
:title, :assignee_id, :position, :description, :confidential, :weight,
:milestone_id, :state_event, :task_num, label_ids: []
)
end
......
......@@ -29,6 +29,13 @@
= render 'projects/notes/hints'
.clearfix
.error-alert
- if issuable.is_a?(Issue)
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
= f.label :confidential do
= f.check_box :confidential
Make this issue confidential
- if can?(current_user, :"admin_#{issuable.to_ability_name}", issuable.project)
%hr
.form-group
......
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