forked from Restream/redmine_issue_checklist
-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.rb
28 lines (22 loc) · 818 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'redmine'
require 'redmine_issue_checklist/redmine_issue_checklist'
Redmine::Plugin.register :redmine_issue_checklist do
name 'Redmine Issue Checklist Plugin'
author 'Kirill Bezrukov'
description 'This plugin adds checklists to Redmine issues.'
version '2.1.0'
url 'http://redminecrm.com'
author_url 'mailto:[email protected]'
requires_redmine version_or_higher: '2.0.0'
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, :done] }
end
end
end