diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2025-03-30 08:59:54 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2025-03-30 08:59:54 +0000 |
commit | 472d2a27972155d737361fcce93f689d0e7d4068 (patch) | |
tree | c5072a6a7a370f45932388cbed21e2178996fea4 | |
parent | 59daaa27e9d207569428c5f593c9f0a4dd62abf6 (diff) | |
download | redmine-472d2a27972155d737361fcce93f689d0e7d4068.tar.gz redmine-472d2a27972155d737361fcce93f689d0e7d4068.zip |
Fixes wrong condition added in r23586 (#13596).
git-svn-id: https://svn.redmine.org/redmine/trunk@23589 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 7b261cf67..2d004a78d 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -190,7 +190,7 @@ class Issue < ApplicationRecord # Returns true if user or current user is allowed to log time on the issue def time_loggable?(user=User.current) - user.allowed_to?(:log_time, project) && (!Setting.timelog_accept_future_dates? || !closed?) + user.allowed_to?(:log_time, project) && (Setting.timelog_accept_closed_issues? || !closed?) end # Returns true if user or current user is allowed to edit or add notes to the issue |