Removed permissions for costs' costlog controller from reporting

pull/6827/head
Sebastian Schuster 12 years ago
parent f635e81740
commit 2a9b598917
  1. 7
      lib/open_project/reporting/engine.rb

@ -64,7 +64,7 @@ module OpenProject::Reporting
permission :save_private_cost_reports, {:cost_reports => edit_actions}
end
#register additional permissions for the time log
#register additional permissions for viewing time and cost entries through the CostReportsController
view_actions.each do |action|
Redmine::AccessControl.permission(:view_time_entries).actions << "cost_reports/#{action}"
Redmine::AccessControl.permission(:view_own_time_entries).actions << "cost_reports/#{action}"
@ -72,11 +72,6 @@ module OpenProject::Reporting
Redmine::AccessControl.permission(:view_own_cost_entries).actions << "cost_reports/#{action}"
end
[:details].each do |action|
Redmine::AccessControl.permission(:view_cost_entries).actions << "costlog/#{action}"
Redmine::AccessControl.permission(:view_own_cost_entries).actions << "costlog/#{action}"
end
#menu extensions
menu :top_menu, :cost_reports_global, {:controller => 'cost_reports', :action => 'index', :project_id => nil},
:caption => :cost_reports_title,

Loading…
Cancel
Save