diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-13 17:59:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-13 17:59:45 +0000 |
commit | f9c9b054babea460fae3bf5341d9720493d9428c (patch) | |
tree | 9ce33267bb318b86c61299db057310fd6cb3dfb0 | |
parent | bbc8d3d76877e27ae7fb41892e2250e6c60c57d1 (diff) | |
download | redmine-f9c9b054babea460fae3bf5341d9720493d9428c.tar.gz redmine-f9c9b054babea460fae3bf5341d9720493d9428c.zip |
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
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index fc0279417..557347bba 100644 --- 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? |