From 6b361642d2c7432fa2b1c530767c7dfa96b89a0d Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Mon, 9 Jun 2008 17:20:28 -0700 Subject: [PATCH] Added protection --- app/views/deliverables/_deliverable.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/deliverables/_deliverable.html.erb b/app/views/deliverables/_deliverable.html.erb index 37d8d6a..0bfb6a6 100644 --- a/app/views/deliverables/_deliverable.html.erb +++ b/app/views/deliverables/_deliverable.html.erb @@ -41,10 +41,12 @@ <%= paragraph_with_data("Total Budget: ", number_to_currency(deliverable.budget, :precision => 0)) -%> + <% if allowed_management? %> <%= paragraph_with_data("Labor: ", number_to_currency(deliverable.labor_budget, :precision => 0)) -%> <%= paragraph_with_data("Overhead: ", number_to_currency(deliverable.overhead, :precision => 0)) -%> <%= paragraph_with_data("Materials: ", number_to_currency(deliverable.materials, :precision => 0)) -%> <%= paragraph_with_data("Profit: ", number_to_currency(deliverable.profit, :precision => 0)) -%> + <% end %>