forked from happy-se-life/kanban
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
19 lines (16 loc) · 761 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Redmine::Plugin.register :kanban do
name 'Kanban plugin'
author 'Kohei Nomura'
description 'Kanban plugin for redmine'
version '0.0.9'
url 'https://github.com/happy-se-life/kanban'
author_url 'mailto:[email protected]'
# Display application common menu
menu :application_menu, :display_menu_link, { :controller => 'kanban', :action => 'index' }, :caption => :kanban_menu_caption, :if => Proc.new { User.current.logged? }
# Display menu at project page
menu :project_menu, :display_menu_link, { :controller => 'kanban', :action => 'index' }, :caption => :kanban_menu_caption, :param => :project_id
# Enable permission for each project
project_module :kanban do
permission :display_menu_link, {:kanban => [:index]}
end
end