added more inheritance objects for view_cost_objects. It is now allowed to see:

* all rates (cost rates and hourly rates)
* all cost entries
* all time entries

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@438 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent 5bab95e094
commit 989c24fe3b
  1. 3
      init.rb

@ -158,7 +158,8 @@ Redmine::Plugin.register :redmine_costs do
:granular_for => :view_cost_entries
permission :block_tickets, {}, :require => :member
permission :view_cost_objects, {:cost_objects => [:index, :show]}
permission :view_cost_objects, {:cost_objects => [:index, :show]},
:inherits => [:view_cost_entries, :view_time_entries, :view_cost_rates, :view_hourly_rates]
permission :edit_cost_objects, {:cost_objects => [:index, :show, :edit, :destroy, :new]},
:inherits => :view_cost_objects
end

Loading…
Cancel
Save