summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-05 10:56:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-05 10:56:27 +0000
commit1d4ef8964def4ecbe7a11485f72d7fbe61c55724 (patch)
tree4986d5f51daebd1ff66ac58cdf56042624e2edc3 /lib
parentc4ea429acbc09205155509e9c41e111294bc8f82 (diff)
downloadredmine-1d4ef8964def4ecbe7a11485f72d7fbe61c55724.tar.gz
redmine-1d4ef8964def4ecbe7a11485f72d7fbe61c55724.zip
Adds a "Manage related isses" permission to add/remove commits/issues relations manually from the changeset view (#2009).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8777 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine.rb1
-rw-r--r--lib/redmine/default_data/loader.rb3
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index b43a53b71..6cb88a9bc 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -128,6 +128,7 @@ Redmine::AccessControl.map do |map|
map.permission :browse_repository, :repositories => [:show, :browse, :entry, :annotate, :changes, :diff, :stats, :graph]
map.permission :view_changesets, :repositories => [:show, :revisions, :revision]
map.permission :commit_access, {}
+ map.permission :manage_related_issues, {:repositories => [:add_related_issue, :remove_related_issue]}
end
map.project_module :boards do |map|
diff --git a/lib/redmine/default_data/loader.rb b/lib/redmine/default_data/loader.rb
index 5ebe69efa..88029ba54 100644
--- a/lib/redmine/default_data/loader.rb
+++ b/lib/redmine/default_data/loader.rb
@@ -73,7 +73,8 @@ module Redmine
:manage_files,
:browse_repository,
:view_changesets,
- :commit_access]
+ :commit_access,
+ :manage_related_issues]
reporter = Role.create! :name => l(:default_role_reporter),
:position => 3,