From 472d2a27972155d737361fcce93f689d0e7d4068 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 30 Mar 2025 08:59:54 +0000 Subject: [PATCH] Fixes wrong condition added in r23586 (#13596). git-svn-id: https://svn.redmine.org/redmine/trunk@23589 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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