@@ -217,7 +217,8 module Redmine | |||
|
217 | 217 | |
|
218 | 218 | # Timespan after which sudo mode expires when unused. |
|
219 | 219 | def self.timeout |
|
220 |
Redmine::Configuration['sudo_mode_timeout'].to_i |
|
|
220 | m = Redmine::Configuration['sudo_mode_timeout'].to_i | |
|
221 | (m > 0 ? m : 15).minutes | |
|
221 | 222 | end |
|
222 | 223 | end |
|
223 | 224 | end |
General Comments 0
You need to be logged in to leave comments.
Login now