@@ -101,6 +101,11 class IssuesController < ApplicationController | |||||
101 | @changesets.reverse! |
|
101 | @changesets.reverse! | |
102 | end |
|
102 | end | |
103 |
|
103 | |||
|
104 | if User.current.allowed_to?(:view_time_entries, @project) | |||
|
105 | Issue.load_visible_spent_hours([@issue]) | |||
|
106 | Issue.load_visible_total_spent_hours([@issue]) | |||
|
107 | end | |||
|
108 | ||||
104 | respond_to do |format| |
|
109 | respond_to do |format| | |
105 | format.html { |
|
110 | format.html { | |
106 | @allowed_statuses = @issue.new_statuses_allowed_to(User.current) |
|
111 | @allowed_statuses = @issue.new_statuses_allowed_to(User.current) |
@@ -60,7 +60,7 | |||||
60 | unless @issue.disabled_core_fields.include?('estimated_hours') |
|
60 | unless @issue.disabled_core_fields.include?('estimated_hours') | |
61 | rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours' |
|
61 | rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours' | |
62 | end |
|
62 | end | |
63 |
if User.current.allowed_to |
|
63 | if User.current.allowed_to?(:view_time_entries, @project) | |
64 | if @issue.total_spent_hours > 0 |
|
64 | if @issue.total_spent_hours > 0 | |
65 | rows.right l(:label_spent_time), issue_spent_hours_details(@issue), :class => 'spent-time' |
|
65 | rows.right l(:label_spent_time), issue_spent_hours_details(@issue), :class => 'spent-time' | |
66 | end |
|
66 | end |
General Comments 0
You need to be logged in to leave comments.
Login now