@@ -187,7 +187,7 class IssuesController < ApplicationController | |||||
187 |
|
187 | |||
188 | if (@time_entry.hours.nil? || @time_entry.valid?) && @issue.save |
|
188 | if (@time_entry.hours.nil? || @time_entry.valid?) && @issue.save | |
189 | # Log spend time |
|
189 | # Log spend time | |
190 |
if current |
|
190 | if User.current.allowed_to?(:log_time, @project) | |
191 | @time_entry.save |
|
191 | @time_entry.save | |
192 | end |
|
192 | end | |
193 | if !journal.new_record? |
|
193 | if !journal.new_record? |
General Comments 0
You need to be logged in to leave comments.
Login now