1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Fixes wrong condition added in r23586 (#13596).

git-svn-id: https://svn.redmine.org/redmine/trunk@23589 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2025-03-30 08:59:54 +00:00
parent 59daaa27e9
commit 472d2a2797

View File

@ -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