mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-08 16:41:31 +00:00
Set a default timeout value (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14354 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b895f6434d
commit
752c414e8a
@ -217,7 +217,8 @@ module Redmine
|
||||
|
||||
# Timespan after which sudo mode expires when unused.
|
||||
def self.timeout
|
||||
Redmine::Configuration['sudo_mode_timeout'].to_i.minutes
|
||||
m = Redmine::Configuration['sudo_mode_timeout'].to_i
|
||||
(m > 0 ? m : 15).minutes
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user