Skip to content

Commit

Permalink
Fix issue Restream#23
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshida3669 committed Apr 3, 2017
1 parent 7485cce commit 26b6be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/issues/_checklist_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class: 'tag-add icon icon-add' %>
<%= file_field_tag 'import_checklist',
id: 'import_checklist_items_input',
accept: 'text/plain' %>
accept: 'text/plain' if User.current.allowed_to?(:import_checklists, @project) %>

<%= javascript_tag "observeIssueChecklistField('checklist_form_items', 'add_checklist_item_input', 'add_checklist_item_button', 'import_checklist_items_input');" %>
<%= javascript_tag "createIssueChecklist(#{@issue.checklist.collect { |cli| { is_done: cli.is_done, subject: cli.subject, id: cli.id } }.to_json.html_safe});" %>
Expand Down
1 change: 1 addition & 0 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
permission :view_checklists, {}
permission :done_checklists, { issue_checklist: :done }
permission :edit_checklists, :issue_checklist => [:delete, :done]
permission :import_checklists, {}
end

settings default: {
Expand Down

0 comments on commit 26b6be8

Please sign in to comment.