summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-22 16:25:09 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-22 16:25:09 +0000
commit1f2f9536875a0383f0ac61e0fdd089b666c96070 (patch)
tree856bfa4645d723b5eb39c754369fa1a00d3ccd86 /lib
parent3b20774c543d33afe10ff794ee8382f1d8e017e9 (diff)
downloadredmine-1f2f9536875a0383f0ac61e0fdd089b666c96070.tar.gz
redmine-1f2f9536875a0383f0ac61e0fdd089b666c96070.zip
Refactor: move NewsController#add_comment to CommentsController#create
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4170 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index a7417df88..198d37304 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -93,7 +93,7 @@ Redmine::AccessControl.map do |map|
map.project_module :news do |map|
map.permission :manage_news, {:news => [:new, :create, :edit, :update, :destroy, :destroy_comment]}, :require => :member
map.permission :view_news, {:news => [:index, :show]}, :public => true
- map.permission :comment_news, {:news => :add_comment}
+ map.permission :comment_news, {:comments => :create}
end
map.project_module :documents do |map|