summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
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