Lost a save during last commit.

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@441 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent 07c5b43a48
commit 023d99cd28
  1. 2
      app/controllers/cost_objects_controller.rb

@ -175,7 +175,7 @@ class CostObjectsController < ApplicationController
if request.xhr?
render :update do |page|
if User.current.allowed_to?(:view_all_rates, @project) || (user == User.current && User.current.allowed_to?(:view_own_rate, @project))
if User.current.allowed_to?(:view_hourly_rates, @project, :for => user)
page.replace_html "#{element_id}_costs", number_to_currency(costs)
end
end

Loading…
Cancel
Save