diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-20 11:38:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-20 11:38:20 +0000 |
commit | 48fb02e3839c30667733e59415d98c373467876b (patch) | |
tree | e7fbabd25d1f5e1c2cc3a55d1c5bddc45dcc70e1 /app/models/document.rb | |
parent | 26016cdc086ad61075512414e72b3f3b9b6d8069 (diff) | |
download | redmine-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 'app/models/document.rb')
-rw-r--r-- | app/models/document.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/document.rb b/app/models/document.rb index 3fcdcee46..0c2ce1736 100644 --- a/app/models/document.rb +++ b/app/models/document.rb @@ -19,7 +19,7 @@ class Document < ActiveRecord::Base include Redmine::SafeAttributes belongs_to :project belongs_to :category, :class_name => "DocumentCategory", :foreign_key => "category_id" - acts_as_attachable :delete_permission => :manage_documents + acts_as_attachable :delete_permission => :delete_documents acts_as_searchable :columns => ['title', "#{table_name}.description"], :include => :project acts_as_event :title => Proc.new {|o| "#{l(:label_document)}: #{o.title}"}, |