diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-18 18:50:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-18 18:50:41 +0000 |
commit | 8e00f57a886ae529ae308a17bfc9a363056754bf (patch) | |
tree | c6b14ccef81ea31948c3ce87d1176593ca56b152 /lib | |
parent | 524cd689cf8743c389aab6a767a09383891dc5c6 (diff) | |
download | redmine-8e00f57a886ae529ae308a17bfc9a363056754bf.tar.gz redmine-8e00f57a886ae529ae308a17bfc9a363056754bf.zip |
Moved ProjectsController#list_documents and add_document to DocumentsController#index and new.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1011 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index 1f1053438..921e16b30 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -58,8 +58,8 @@ Redmine::AccessControl.map do |map| end map.project_module :documents do |map| - map.permission :manage_documents, {:projects => :add_document, :documents => [:edit, :destroy, :add_attachment, :destroy_attachment]}, :require => :loggedin - map.permission :view_documents, :projects => :list_documents, :documents => [:show, :download] + map.permission :manage_documents, {:documents => [:new, :edit, :destroy, :add_attachment, :destroy_attachment]}, :require => :loggedin + map.permission :view_documents, :documents => [:index, :show, :download] end map.project_module :files do |map| @@ -97,7 +97,7 @@ Redmine::MenuManager.map :project_menu do |menu| 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 => 'news', :action => 'index' }, :param => :project_id - menu.push :label_document_plural, :controller => 'projects', :action => 'list_documents' + menu.push :label_document_plural, { :controller => 'documents', :action => 'index' }, :param => :project_id 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? } menu.push :label_attachment_plural, :controller => 'projects', :action => 'list_files' |