Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (30 sloc) 1.169 kb
require 'redmine'
ActionDispatch::Callbacks.to_prepare do
require_dependency 'project'
require_dependency 'user'
unless Project.included_modules.include? RedmineRoleReplacements::ProjectPatch
Project.send :include, RedmineRoleReplacements::ProjectPatch
end
unless User.included_modules.include? RedmineRoleReplacements::UserPatch
User.send :include, RedmineRoleReplacements::UserPatch
end
end
Redmine::Plugin.register :redmine_role_replacements do
name 'Redmine Role Replacement Plugin'
author 'Undev'
description 'This plugin enables replacement of roles in Redmine projects.'
version '1.0.0'
url 'https://github.com/Undev/redmine_role_replacements'
author_url 'https://github.com/Undev'
requires_redmine :version_or_higher => '2.0.0'
project_module :role_replacements do
permission :manage_role_replacements,
{ :role_replacements => [:index, :new, :create, :edit, :update, :destroy] },
:require => :loggedin
end
menu :project_menu,
:role_replacements,
{ :controller => 'role_replacements', :action => 'index' },
:param => :project_id,
:after => :settings
end
Jump to Line
Something went wrong with that request. Please try again.