From: Jean-Philippe Lang Date: Fri, 14 Sep 2007 11:42:23 +0000 (+0000) Subject: Fixed: Spent Time on Reports page only visible to administrators. X-Git-Tag: 0.6.0~155 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1fa1f620183d2268e906deadb1c5f87a0335d518;p=redmine.git Fixed: Spent Time on Reports page only visible to administrators. git-svn-id: http://redmine.rubyforge.org/svn/trunk@727 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/reports/issue_report.rhtml b/app/views/reports/issue_report.rhtml index 1d865acbc..33f5e4a4d 100644 --- a/app/views/reports/issue_report.rhtml +++ b/app/views/reports/issue_report.rhtml @@ -1,4 +1,4 @@ -<% if @total_hours && authorize_for('timelog', 'reports') %> +<% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
<%= l(:label_spent_time) %>: <%= lwr(:label_f_hour, @total_hours) %>
<%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project}) %> |