summaryrefslogtreecommitdiffstats
path: root/app/views/reports
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-14 11:42:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-14 11:42:23 +0000
commit1fa1f620183d2268e906deadb1c5f87a0335d518 (patch)
treefada6855dd07b6b41f2dc1924464d7acbda7a25b /app/views/reports
parent8929bfca6312254b9c0fe8b2be8eeabf02b18b85 (diff)
downloadredmine-1fa1f620183d2268e906deadb1c5f87a0335d518.tar.gz
redmine-1fa1f620183d2268e906deadb1c5f87a0335d518.zip
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
Diffstat (limited to 'app/views/reports')
-rw-r--r--app/views/reports/issue_report.rhtml2
1 files changed, 1 insertions, 1 deletions
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) %>
<div style="float:right;text-align:right;">
<strong><%= l(:label_spent_time) %></strong>: <span class="icon icon-time"><%= lwr(:label_f_hour, @total_hours) %></span><br />
<%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project}) %> |