summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/issue.rb2
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