summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-02-06 17:59:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-02-06 17:59:08 +0000
commitf52253c2ef47c8b9693a92fcb78a5271cfc2ffd8 (patch)
tree716f4876f7ed8f47f25ca44677e00a3f960e60dc
parenta11aec0d4c9543ed310085914ac24144f325a608 (diff)
downloadredmine-f52253c2ef47c8b9693a92fcb78a5271cfc2ffd8.tar.gz
redmine-f52253c2ef47c8b9693a92fcb78a5271cfc2ffd8.zip
Merged r12652 (#15664).
git-svn-id: http://svn.redmine.org/redmine/branches/2.4-stable@12846 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 43e3f146a..c637d3bfb 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -140,20 +140,20 @@ Redmine::AccessControl.map do |map|
end
map.project_module :news do |map|
- map.permission :manage_news, {:news => [:new, :create, :edit, :update, :destroy], :comments => [:destroy]}, :require => :member
+ map.permission :manage_news, {:news => [:new, :create, :edit, :update, :destroy], :comments => [:destroy], :attachments => :upload}, :require => :member
map.permission :view_news, {:news => [:index, :show]}, :public => true, :read => true
map.permission :comment_news, {:comments => :create}
end
map.project_module :documents do |map|
- map.permission :add_documents, {:documents => [:new, :create, :add_attachment]}, :require => :loggedin
- map.permission :edit_documents, {:documents => [:edit, :update, :add_attachment]}, :require => :loggedin
+ map.permission :add_documents, {:documents => [:new, :create, :add_attachment], :attachments => :upload}, :require => :loggedin
+ map.permission :edit_documents, {:documents => [:edit, :update, :add_attachment], :attachments => :upload}, :require => :loggedin
map.permission :delete_documents, {:documents => [:destroy]}, :require => :loggedin
map.permission :view_documents, {:documents => [:index, :show, :download]}, :read => true
end
map.project_module :files do |map|
- map.permission :manage_files, {:files => [:new, :create]}, :require => :loggedin
+ map.permission :manage_files, {:files => [:new, :create], :attachments => :upload}, :require => :loggedin
map.permission :view_files, {:files => :index, :versions => :download}, :read => true
end
@@ -164,7 +164,7 @@ Redmine::AccessControl.map do |map|
map.permission :view_wiki_pages, {:wiki => [:index, :show, :special, :date_index]}, :read => true
map.permission :export_wiki_pages, {:wiki => [:export]}, :read => true
map.permission :view_wiki_edits, {:wiki => [:history, :diff, :annotate]}, :read => true
- map.permission :edit_wiki_pages, :wiki => [:edit, :update, :preview, :add_attachment]
+ map.permission :edit_wiki_pages, :wiki => [:edit, :update, :preview, :add_attachment], :attachments => :upload
map.permission :delete_wiki_pages_attachments, {}
map.permission :protect_wiki_pages, {:wiki => :protect}, :require => :member
end
@@ -180,9 +180,9 @@ Redmine::AccessControl.map do |map|
map.project_module :boards do |map|
map.permission :manage_boards, {:boards => [:new, :create, :edit, :update, :destroy]}, :require => :member
map.permission :view_messages, {:boards => [:index, :show], :messages => [:show]}, :public => true, :read => true
- map.permission :add_messages, {:messages => [:new, :reply, :quote]}
- map.permission :edit_messages, {:messages => :edit}, :require => :member
- map.permission :edit_own_messages, {:messages => :edit}, :require => :loggedin
+ map.permission :add_messages, {:messages => [:new, :reply, :quote], :attachments => :upload}
+ map.permission :edit_messages, {:messages => :edit, :attachments => :upload}, :require => :member
+ map.permission :edit_own_messages, {:messages => :edit, :attachments => :upload}, :require => :loggedin
map.permission :delete_messages, {:messages => :destroy}, :require => :member
map.permission :delete_own_messages, {:messages => :destroy}, :require => :loggedin
end