Commit 1c1fb6c1 authored by jplang's avatar jplang

Set a default timeout value (#19851).

git-svn-id: https://svn.redmine.org/redmine/trunk@14354 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3c5ed09b
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment