Timelog is ignored when updating an issue if user is admin but not a project member (#2717).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2463 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
bbc8d3d768
commit
f9c9b054ba
1 file changed
+1
-1
@@ -187,7 +187,7 @@ class IssuesController < ApplicationController
|
|||||||
|
|
||||||
if (@time_entry.hours.nil? || @time_entry.valid?) && @issue.save
|
if (@time_entry.hours.nil? || @time_entry.valid?) && @issue.save
|
||||||
# Log spend time
|
# Log spend time
|
||||||
if current_role.allowed_to?(:log_time)
|
if User.current.allowed_to?(:log_time, @project)
|
||||||
@time_entry.save
|
@time_entry.save
|
||||||
end
|
end
|
||||||
if !journal.new_record?
|
if !journal.new_record?
|
||||||
|
|||||||
Reference in new issue
Block a user