From 0c2b8660fdc6544097891ce71444f8460bd01f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20von=20Bremen-K=C3=BChne?= Date: Fri, 21 Nov 2014 15:31:34 +0100 Subject: [PATCH] Added check of view_time_entries-permission in taskboard-tooltips --- app/views/rb_stories/_tooltip.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/rb_stories/_tooltip.html.erb b/app/views/rb_stories/_tooltip.html.erb index ced3ea6ab..46006bbc1 100644 --- a/app/views/rb_stories/_tooltip.html.erb +++ b/app/views/rb_stories/_tooltip.html.erb @@ -4,7 +4,7 @@ <%= I18n.t :field_category %>: <%=h tooltip.category %>
<%= I18n.t :story_points %>: <%=h story_points_or_empty(tooltip) %>
<%= I18n.t :story_estimation_hours %>: <%=h tooltip.estimated_hours %>
-<%= I18n.t :story_spent_time %>: <%= tooltip.total_spent_hours.round(2) %>
+<% if User.current.allowed_to?(:view_time_entries, @project) %><%= I18n.t :story_spent_time %>: <%= tooltip.total_spent_hours.round(2) %>
<% end %> <%= I18n.t :story_remaining_hours %>: <%=h remaining_hours_or_empty(tooltip) %>
<%= I18n.t :field_assigned_to %>: <%=h assignee_name_or_empty(tooltip) %>
<%= I18n.t :field_project %>: <%=h project_name_or_empty(tooltip) %>