fixed cost_report-link bug in top_menu - now the project_scope is removed for global reporting

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1809 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 14 years ago
parent a8adf91a4c
commit 0e67a7273b
  1. 2
      init.rb

@ -32,7 +32,7 @@ Redmine::Plugin.register :redmine_reporting do
Redmine::AccessControl.permission(:view_own_time_entries).actions << "cost_reports/index" Redmine::AccessControl.permission(:view_own_time_entries).actions << "cost_reports/index"
#menu extensions #menu extensions
menu :top_menu, :cost_reports_global, {:controller => 'cost_reports', :action => 'index'}, menu :top_menu, :cost_reports_global, {:controller => 'cost_reports', :action => 'index', :project_id => nil},
:caption => :cost_reports_title, :caption => :cost_reports_title,
:if => Proc.new { :if => Proc.new {
( User.current.allowed_to?(:view_cost_entries, nil, :global => true, :for => User.current ) || ( User.current.allowed_to?(:view_cost_entries, nil, :global => true, :for => User.current ) ||

Loading…
Cancel
Save