]> source.dussan.org Git - redmine.git/commitdiff
Fixed: Spent Time on Reports page only visible to administrators.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 14 Sep 2007 11:42:23 +0000 (11:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 14 Sep 2007 11:42:23 +0000 (11:42 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@727 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/reports/issue_report.rhtml

index 1d865acbc70e73bc5a4af7b2548db515fe9a2472..33f5e4a4d585028ef5845b501a49439a67d2e3f6 100644 (file)
@@ -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}) %> |