OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc8d3d
)
Timelog is ignored when updating an issue if user is admin but not a project member...
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Fri, 13 Feb 2009 17:59:45 +0000
(17:59 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Fri, 13 Feb 2009 17:59:45 +0000
(17:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2463
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/controllers/issues_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/issues_controller.rb
b/app/controllers/issues_controller.rb
index
fc02794
..
557347b
100644
(file)
--- a/
app/controllers/issues_controller.rb
+++ b/
app/controllers/issues_controller.rb
@@
-187,7
+187,7
@@
class IssuesController < ApplicationController
if (@time_entry.hours.nil? || @time_entry.valid?) && @issue.save
# Log spend time
- if
current_role.allowed_to?(:log_time
)
+ if
User.current.allowed_to?(:log_time, @project
)
@time_entry.save
end
if !journal.new_record?