fixed permissions for global 'cost reports' link

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1633 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 14 years ago
parent 141b0454d8
commit f6aac40189
  1. 4
      init.rb

@ -37,8 +37,8 @@ Redmine::Plugin.register :redmine_reporting do
menu :top_menu, :cost_reports_global, {:controller => 'cost_reports', :action => 'index'},
:caption => :cost_reports_title,
:if => Proc.new {
( User.current.allowed_to?(:view_cost_objects, nil, :global => true) ||
User.current.allowed_to?(:edit_cost_objects, nil, :global => true)
( User.current.allowed_to?(:view_cost_entries, nil, :global => true) ||
User.current.allowed_to?(:view_time_entries, nil, :global => true)
)
}

Loading…
Cancel
Save