From f5e81e2c07caf54a30cff32d9656a60c6e147d34 Mon Sep 17 00:00:00 2001 From: "p.tessenow" Date: Thu, 3 Jun 2010 11:46:52 +0000 Subject: [PATCH] cleaned permissions for costs and reporting plugin as goog as possible according to my little knowledge in the redmine permission system git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1164 7926756e-e54e-46e6-9721-ed318f58905e --- init.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.rb b/init.rb index 8e5bea1f8d..ddb36c1498 100644 --- a/init.rb +++ b/init.rb @@ -106,6 +106,11 @@ Redmine::Plugin.register :redmine_costs do :inherits => :view_cost_objects end + # register additional permissions for the time log + project_module :time_tracking do + permission :view_own_time_entries, {:timelog => [:details, :report]}, :granular_for => :view_time_entries + end + view_time_entries = Redmine::AccessControl.permission(:view_time_entries) view_time_entries.instance_variable_set("@inherits", [:view_own_time_entries]) view_time_entries.actions << "cost_reports/index"