diff options
Diffstat (limited to 'app/helpers/projects/incidents_helper.rb')
-rw-r--r-- | app/helpers/projects/incidents_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/projects/incidents_helper.rb b/app/helpers/projects/incidents_helper.rb index dde2980817f..4b3ff8a3e83 100644 --- a/app/helpers/projects/incidents_helper.rb +++ b/app/helpers/projects/incidents_helper.rb @@ -11,7 +11,8 @@ module Projects::IncidentsHelper 'empty-list-svg-path' => image_path('illustrations/incident-empty-state.svg'), 'text-query': params[:search], 'author-username-query': params[:author_username], - 'assignee-username-query': params[:assignee_username] + 'assignee-username-query': params[:assignee_username], + 'can-create-incident': create_issue_type_allowed?(project, :incident).to_s } end end |