Skip to content

Commit

Permalink
Fix issue Restream#22
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshida3669 committed Apr 3, 2017
1 parent 5c6d3e0 commit 7485cce
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@

requires_redmine version_or_higher: '2.0.0'

project_module :issue_checklist do
permission :view_checklists, {}
permission :done_checklists, { issue_checklist: :done }
permission :edit_checklists, :issue_checklist => [:delete, :done]
end

settings default: {
save_log: false,
issue_done_ratio: false
}, partial: 'settings/issue_checklist'

Redmine::AccessControl.map do |map|
map.project_module :issue_tracking do |map|
map.permission :view_checklists, {}
map.permission :done_checklists, { issue_checklist: :done }
map.permission :edit_checklists, { issue_checklist: :delete, issue_checklist: :done }
end
end

end

0 comments on commit 7485cce

Please sign in to comment.