From 989c24fe3b27614b123e3eac354783207a9c6e88 Mon Sep 17 00:00:00 2001 From: hjust Date: Mon, 21 Dec 2009 17:36:44 +0000 Subject: [PATCH] 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 --- init.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.rb b/init.rb index e61898f842..7f37d87b0e 100644 --- a/init.rb +++ b/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