diff options
Diffstat (limited to 'app/views/projects/_sidebar.html.erb')
-rw-r--r-- | app/views/projects/_sidebar.html.erb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/_sidebar.html.erb b/app/views/projects/_sidebar.html.erb index 0f5c24186..803686ae1 100644 --- a/app/views/projects/_sidebar.html.erb +++ b/app/views/projects/_sidebar.html.erb @@ -1,6 +1,8 @@ -<% if @total_hours.present? %> +<% if User.current.allowed_to?(:view_time_entries, @project) %> <h3><%= l(:label_spent_time) %></h3> - <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> + <% if @total_hours.present? %> + <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> + <% end %> <p> <% if User.current.allowed_to?(:log_time, @project) %> <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> | |