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
pull/6827/head
p.tessenow 15 years ago
parent 2d933cbb61
commit f5e81e2c07
  1. 5
      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"

Loading…
Cancel
Save