summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-20 11:38:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-20 11:38:20 +0000
commit48fb02e3839c30667733e59415d98c373467876b (patch)
treee7fbabd25d1f5e1c2cc3a55d1c5bddc45dcc70e1 /lib/redmine.rb
parent26016cdc086ad61075512414e72b3f3b9b6d8069 (diff)
downloadredmine-48fb02e3839c30667733e59415d98c373467876b.tar.gz
redmine-48fb02e3839c30667733e59415d98c373467876b.zip
Split "Manage documents" permission into create, edit and delete permissions (#12401).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11206 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 12cfe64bf..5b09b77b8 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -146,7 +146,9 @@ Redmine::AccessControl.map do |map|
end
map.project_module :documents do |map|
- map.permission :manage_documents, {:documents => [:new, :create, :edit, :update, :destroy, :add_attachment]}, :require => :loggedin
+ map.permission :add_documents, {:documents => [:new, :create, :add_attachment]}, :require => :loggedin
+ map.permission :edit_documents, {:documents => [:edit, :update, :add_attachment]}, :require => :loggedin
+ map.permission :delete_documents, {:documents => [:destroy]}, :require => :loggedin
map.permission :view_documents, {:documents => [:index, :show, :download]}, :read => true
end