Add an option to user make an issue confidential
This commit is contained in:
parent
abb77d0f6c
commit
6b86d3fb80
|
@ -158,7 +158,7 @@ class Projects::IssuesController < Projects::ApplicationController
|
||||||
|
|
||||||
def issue_params
|
def issue_params
|
||||||
params.require(:issue).permit(
|
params.require(:issue).permit(
|
||||||
:title, :assignee_id, :position, :description,
|
:title, :assignee_id, :position, :description, :confidential,
|
||||||
:milestone_id, :state_event, :task_num, label_ids: []
|
:milestone_id, :state_event, :task_num, label_ids: []
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
|
@ -29,6 +29,15 @@
|
||||||
= render 'projects/notes/hints'
|
= render 'projects/notes/hints'
|
||||||
.clearfix
|
.clearfix
|
||||||
.error-alert
|
.error-alert
|
||||||
|
|
||||||
|
- if issuable.is_a?(Issue) && !issuable.project.private?
|
||||||
|
.form-group
|
||||||
|
.col-sm-offset-2.col-sm-10
|
||||||
|
.checkbox
|
||||||
|
= f.label :confidential do
|
||||||
|
= f.check_box :confidential
|
||||||
|
This issue is confidential and should only be visible to team members
|
||||||
|
|
||||||
- if can?(current_user, :"admin_#{issuable.to_ability_name}", issuable.project)
|
- if can?(current_user, :"admin_#{issuable.to_ability_name}", issuable.project)
|
||||||
%hr
|
%hr
|
||||||
.form-group
|
.form-group
|
||||||
|
|
Loading…
Reference in New Issue