OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/init.rb

37 lines
1.6 KiB

require 'redmine'
require 'dispatcher'
Dispatcher.to_prepare do
require_dependency 'project'
require 'redmine_meeting/patch_redmine_classes'
Project.send(:include, ::Plugin::Meeting::Project)
Mailer.send(:include, ::Plugin::Meeting::Mailer)
end
Redmine::Plugin.register :redmine_meeting do
name 'Redmine Meeting'
author 'Felix Schäfer @ finnlabs'
author_url 'http://finn.de/team'
description 'This plugin adds a meeting module with functionality to plan an agenda and save the minutes of a meeting.'
url 'http://finn.de'
version 'devel'
requires_redmine :version_or_higher => '1.0'
project_module :meetings do
permission :create_meetings, {:meetings => [:new, :create]}, :require => :member
permission :edit_meetings, {:meetings => [:edit, :update]}, :require => :member
permission :delete_meetings, {:meetings => [:destroy]}, :require => :member
permission :view_meetings, {:meetings => [:index, :show], :meeting_agendas => [:history, :show, :diff], :meeting_minutes => [:history, :show, :diff]}
permission :close_meeting_agendas, {:meeting_agendas => [:close, :open]}, :require => :member
permission :create_meeting_agendas, {:meeting_agendas => [:update]}, :require => :member
permission :send_meeting_minutes_notification, {:meeting_minutes => [:notify]}, :require => :member
permission :create_meeting_minutes, {:meeting_minutes => [:update]}, :require => :member
end
Redmine::Search.map do |search|
search.register :meetings
end
menu :project_menu, :meetings, {:controller => 'meetings', :action => 'index'}, :caption => :project_module_meetings, :param => :project_id, :after => :wiki
end