summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-05 22:22:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-05 22:22:51 +0000
commitad68a82be19f44c8e9ab895075a4e932133ad6ee (patch)
treea8cc406846b7883cda0b4c54a07843395280b694 /lib
parent8509cf80f009436e900294acc821295f21e3b142 (diff)
downloadredmine-ad68a82be19f44c8e9ab895075a4e932133ad6ee.tar.gz
redmine-ad68a82be19f44c8e9ab895075a4e932133ad6ee.zip
Moved ProjectsController#list_news to NewsController#index.
Removed FeedsController, issues and news feeds are now handled by issues and news controllers. git-svn-id: http://redmine.rubyforge.org/svn/trunk@888 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 3e9569ac2..959cfc0c8 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -52,7 +52,7 @@ Redmine::AccessControl.map do |map|
map.project_module :news do |map|
map.permission :manage_news, {:projects => :add_news, :news => [:edit, :destroy, :destroy_comment]}, :require => :member
- map.permission :view_news, {:projects => :list_news, :news => :show}, :public => true
+ map.permission :view_news, {:news => [:index, :show]}, :public => true
map.permission :comment_news, {:news => :add_comment}, :require => :loggedin
end
@@ -93,7 +93,7 @@ Redmine::MenuManager.map :project_menu do |menu|
menu.push :label_activity, :controller => 'projects', :action => 'activity'
menu.push :label_roadmap, :controller => 'projects', :action => 'roadmap'
menu.push :label_issue_plural, { :controller => 'issues', :action => 'index' }, :param => :project_id
- menu.push :label_news_plural, :controller => 'projects', :action => 'list_news'
+ menu.push :label_news_plural, { :controller => 'news', :action => 'index' }, :param => :project_id
menu.push :label_document_plural, :controller => 'projects', :action => 'list_documents'
menu.push :label_wiki, { :controller => 'wiki', :action => 'index', :page => nil }, :if => Proc.new { |p| p.wiki && !p.wiki.new_record? }
menu.push :label_board_plural, { :controller => 'boards', :action => 'index', :id => nil }, :param => :project_id, :if => Proc.new { |p| p.boards.any? }