forked from Restream/redmine_custom_reports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
24 lines (21 loc) · 817 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
Redmine::Plugin.register :redmine_custom_reports do
name 'Redmine Custom Reports (with charts) plugin'
author 'Restream'
description 'Redmine plugin for custom reports with charts'
version '1.0.0'
url 'https://github.com/Restream/redmine_custom_reports'
author_url 'https://github.com/Restream'
project_module :custom_reports do
permission :manage_custom_reports,
{ custom_reports: [:new, :create, :edit, :update, :destroy] }
permission :view_custom_reports, { custom_reports: [:index, :show] }
permission :manage_public_custom_reports, {}
end
menu :project_menu,
:custom_reports,
{ controller: 'custom_reports', action: 'index' },
param: :project_id,
before: :settings
end
# Require plugin after register
require 'redmine_custom_reports'