git-svn-id: https://dev.finn.de/svn/cockpit/trunk@400 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent 37baedf7df
commit 4438d6d569
  1. 2
      app/models/hourly_rate.rb

@ -29,7 +29,7 @@ class HourlyRate < Rate
def self.history_for_user(usr, check_permissions = true)
rates = Hash.new
Projects.has_module(:costs_plugin).active.visible.each do |project|
Project.has_module(:costs_plugin).active.visible.each do |project|
next if (check_permissions && !User.current.allowed_to?(:view_hourly_rates, project, {:for_user => usr}))
rates[project] = HourlyRate.find(:all,

Loading…
Cancel
Save