diff --git a/lib/redmine.rb b/lib/redmine.rb index 9eccc9d877..e5c4463b4f 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -278,7 +278,8 @@ end Redmine::MenuManager.map :project_menu do |menu| menu.push :overview, { :controller => '/projects', :action => 'show' } - menu.push :activity, { :controller => '/activities', :action => 'index' }, :param => :project_id + menu.push :activity, { :controller => '/activities', :action => 'index' }, :param => :project_id, + :if => Proc.new { |p| p.module_enabled?("activity") } menu.push :roadmap, { :controller => '/versions', :action => 'index' }, :param => :project_id, :if => Proc.new { |p| p.shared_versions.any? }